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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

currency conversion

Hi everyone,

 

Can someone help me with a currency conversion

 

Marco Russo makes this article: 

https://www.sqlbi.com/articles/currency-conversion-in-power-bi-reports/ 

 

nice to see that the currency problem is solved with a summarize virtual table

 

Question 1..

In my situation we have a lot of different companys in the dataset. So its possible that i have salesmutations in EUR and AUD etc 

How can i make this work to convert it to a reporting currency

 

Question 2.

The Exchangetable have for each company a rate from Transaction Currency to Reporting Currency. But not for everyday, but only when the rate changes. 

example.. i need the last exchange rate that exist for a company and transaction / reporting currency 

 

Question 3.

When we make a summery table like the example from Marco Russo. How works the relation between the virtual table and the date table and company table? Is t

 

With kind regards.....

3 REPLIES 3
Anonymous
Not applicable

This is the formula that i uses:

Amount in report currency =

VAR report_valuta =
    SELECTEDVALUE ( 'Reporting Currency'[Reporting Currency] )
VAR last_datum =
    LASTDATE ( Kalender[Date] )
VAR temp_Exchange =
    SUMMARIZE (
        ExchRates,
        ExchRates[Administratie],
        "temp_koers",
            MAXX (
                TOPN (
                    1,
                    FILTER (
                        ExchRates,
                        ExchRates[Date] <= last_datum
                            && ExchRates[Transaction Currency] = report_valuta
                    ),
                    ExchRates[Date], DESC
                ),
                ExchRates[Factor gedeeld]
            )
    )
RETURN
    IF (
        HASONEVALUE ( 'Reporting Currency'[Reporting Currency] ),
        SUMX ( temp_Exchange, [temp_koers] * [Bedrag Native Currency totaal] )
    )

 

 

Hi @Anonymous ,

 

I find that you have attached your formula here. Have you resolved the problems? If yes, you could accept your answer as solution. Others will benefit from the answer. If you still need help, can you please share some sample data and expected results with us?  We are not clear about your situation just based on the description and the formula. Thanks.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

@Anonymous - Recipe 8 of Chapter 5 of DAX Cookbook has a section on currency exchange rates. You cand download the PBIX here:

https://github.com/gdeckler/DAXCookbook

 

See if that helps, otherwise, please post sample data as text and expected output.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors