Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dimitris_Kats
Helper V
Helper V

Fixed Exchange Rate

Hello Everyone,

 

I have a small problem...i can think of a solution but I am not sure if its the best one so I will need your advice about that.

 

I have a table with sales, cost and profit per country and city for 2021.

I also have another table with fixed exchange rate. This rate won't change throughout the year it will stay stable.
I would like to have both options for my reports. Local Currency and euro.

 

The sales table is:

YearCountryCitySales (Local Currency)Cost (Local Currency)Profit (Local Currency)
2021UKLondon                        100.000                          33.333                            66.667  
2021UKBristol                       150.000                          50.000                          100.000  
2021UKLiverpool                         50.000                          16.667                            33.333  
2021FranceParis                       300.000                        100.000                          200.000  
2021FranceMarseille                         60.000                          20.000                            40.000  
2021FranceLyon                         45.000                          15.000                            30.000  
2021USANY                   1.000.000                        333.333                          666.667  
2021USAArizona                        600.000                        200.000                          400.000  
2021IndiaNew Delhi                 10.000.000                    3.333.333                      6.666.667  
2021IndiaMumbai                   8.500.000                    2.833.333                      5.666.667  

 

The Exchange Rate table is:

Country    Exchange Rate
India85,00000
UK1,19000
France1,00000
USA1,11000

 

I was thinking to use a lookupvalue dax and add a calculated column in my sales table with the exchange rate column and create new columns for sales, cost and profit in euro. 

I was wondering if I can achieve the same results with measures and avoid creating so mane calculated columns.
Thank you very much in advance!!!

1 ACCEPTED SOLUTION

Hi,

I tried to create it in the next page in the attached pbix file.

please check the below picture and the attached pbix file.

 

Picture4.png

 

Sales currency slicer: =
SWITCH (
    SELECTEDVALUE ( 'Currency Select'[Currency select] ),
    "Local", IF ( HASONEVALUE ( Sales[Country] ), SUM ( Sales[Sales (Local Currency)] ) ),
    "Euro",
        SUMX (
            sales,
            CALCULATE (
                DIVIDE (
                    SUM ( Sales[Sales (Local Currency)] ),
                    LOOKUPVALUE (
                        ExchangeRate[Exchange Rate],
                        ExchangeRate[Country], SELECTEDVALUE ( Sales[Country] )
                    )
                )
            )
        )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I only created the sales amount, and I hope you can apply the same logic to Cost and Profit as well.

Picture2.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

First of all thank you very much for your reply! I appreciate it!!

To be honest i wanted to have only 2 selections on the currency slicer : Local and euro.
If they select local currency they will see the sales exactly in the way I have them in the sales table. If they select euro they will have the sales in euro based on the exchange rates on the second table.
Do you think this is possible?

Thank you very much again for your time and help!

Hi,

I tried to create it in the next page in the attached pbix file.

please check the below picture and the attached pbix file.

 

Picture4.png

 

Sales currency slicer: =
SWITCH (
    SELECTEDVALUE ( 'Currency Select'[Currency select] ),
    "Local", IF ( HASONEVALUE ( Sales[Country] ), SUM ( Sales[Sales (Local Currency)] ) ),
    "Euro",
        SUMX (
            sales,
            CALCULATE (
                DIVIDE (
                    SUM ( Sales[Sales (Local Currency)] ),
                    LOOKUPVALUE (
                        ExchangeRate[Exchange Rate],
                        ExchangeRate[Country], SELECTEDVALUE ( Sales[Country] )
                    )
                )
            )
        )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

That's amazing and exactly what i need! 
Thank you so much!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.