Forum Discussion

KougaGennosuke's avatar
KougaGennosuke
New Member
4 years ago
Solved

Currency conversion

Hello community,   I'm a new Power BI user and would greatly appreciate your help regarding setback I encountered.   I'm building a quite simple dashboard consisting of yearly data (year end, for...
  • v-henryk-mstf's avatar
    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.