Forum Discussion
Currency conversion
- 4 years ago
Hi KougaGennosuke ,
According to your description, you can refer to the following companies. Create three separate measures corresponding to REVENUES, LOGISTICS COST, and TAX PAID fields. Depending on the choice of currency in the slicer, the corresponding column visual is dynamically displayed.
M_REVENUES = SWITCH ( SELECTEDVALUE ( 'FX table'[Currency] ), "USD", CALCULATE ( SUM ( 'Table'[REVENUES (EUR)] ), ALLEXCEPT ( 'Table', 'Table'[Product name], 'Table'[DATE] ) ), "GBP", CALCULATE ( SUM ( 'Table'[REVENUES (EUR)] ), ALLEXCEPT ( 'Table', 'Table'[Product name], 'Table'[DATE] ) ) )
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KougaGennosuke this is good, but what is your currency table look like? Do you have an FX rate for each transaction date?
I should create currency table, but what I am struggling with is the format ie what to put in rows and columns. I know the applicable exchange rates on relevant dates.