Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Currency Comversion SSAS

$
0
0
I have a sales table with sales amount in local currency and want to report in a consolidation currency. So far so good.But the user needs to be able to pick a specific exchange rate date and calculate the consolidated sales amount on the fly.Typically this will be made by having a slicer in excel for the exchange rate date.The follwing two fact tables exist[b]fact_sales[/b]local_currency_codelocal_sales_amount[b]fact_exchange_rate[/b]source_currency_codeexchange_rate_dateexchange_rateOne date is used as default exchange_rate_date (used if no exchange_rate_date is selected).Note that the fact_exchange_rate does not contain destination_currency_code since only one consolidation currency is used.I have created a calculated measure:consolidation_sales_amount = local_sales_amount*exchange_ratethat works fine as long as local_sales_amount does not consist of different curenciesI appriciate any help or hints.Let me know if any information is missing

Viewing all articles
Browse latest Browse all 3145

Trending Articles