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.
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.