Forum Discussion
DAX to convert currency?
I have no idea on what exactly your scenario is, however I think you need an exchange rate table for whatever cases. Please check the below sample.
Table = SELECTCOLUMNS(FILTER(CROSSJOIN('exchange table','sales table'),'exchange table'[currency]='sales table'[currency]&&'exchange table'[date]='sales table'[sales date]),"sales date",'sales table'[sales date],"GBP",'sales table'[sales],"ERU",'sales table'[sales]*'exchange table'[exchange rate],"exchange rate",'exchange table'[exchange rate])
If you have any question, feel free to let me know.
- trebgatte10 years ago
Most Valuable Professional
I agree with Eric, though I'd externalize the conversion table for easier maintenance. Most corporate finance groups have a fixed conversion rate for a time period rather than using the market rate.
Perhaps you can put this in a centralized XLSX or a SharePoint list so that it can easily be updated without having to do anything to the PBIX.
- sgannon110 years agoFrequent Visitor
Thanks for your responses - below is the table, the Amount column is the one I need converted as it is currently GBP (my reporting needs to be in Euro), and the table below it has the currency conversion rate.
I'd appreciate any help on the how to construct the formula to do the conversion?