I have uploaded 2 datasets, where Main table and lookup table. Here in main table, I my all-price amounts in USD already converted. But user expecting us to design report where he wants to see his over all sales in different currency rates as per latest date. By default it will be in USD, already converted to USD price amount but to convert from USD to GBP or AUD or EUR, then we have first joined the Main table and Lookup table using USD currency and made inner join/Left outer join. After this created parameter and controls to select required currencies from single select parameter and linked this to calculated fields as below:
First calculated field as below: SelectedExchangeRate
Sum(ifelse(${SelectedCurrencyCode}=‘USD’, 1,
${SelectedCurrencyCode}=‘AUD’, {ExchangeRate},
${SelectedCurrencyCode}=‘CAD’, {ExchangeRate},
${SelectedCurrencyCode}=‘EUR’, {ExchangeRate},
${SelectedCurrencyCode}=‘GBP’, {ExchangeRate},
1
)
)
Also created Second calculated field as below: FilteredExchangeRate
ifelse(ToCurrency = ${SelectedCurrency}, ExchangeRate, null)ifelse(ToCurrency = ${SelectedCurrency}, ExchangeRate, null)
Third Calculated field: LoanAmountInSelectedCurrency
PriceAmountUSD * coalesce(FilteredExchangeRate, 1)
Finally moved the main table dims and these above calculated fields to table, this logic is only for USD amount but dynamically not working for other country currencies, please working on this POC to showcase clients and bring quick sight project to our company, please help?
Please consider my request as urgent and help me, am very new to quick sight as well.