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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
GFAlexander
New Member

Convert Currency

Hi All,

 

I'm fairly new to Power BI and I've managed to find answers to most of what I've needed so far, I'm a little stuck on dealing with currencies though.  I have looked at other solutions in here, but I can't find anything that quite matches what I need, so your help would be appreciated.

 

I have tables and fields as follows:

 

Transaction_lines

   BI Amt  This is a transaction value but the vaue is in the currency of the transaction

   Transaction_ID  This links the transaction lines to the header (see below)

 

Transactions

   Transaction_ID  Links the header to the lines

   Currency_ID  As it sounds, identifies the currency

 

CurrencyRates

   Currency_ID

   Exchange_Rate  The exchange rate for the date

   Date_Effective   Effective date of the rate

 

What I want to be able to do is create a column or a measure (but I think it has to be a column) on the transaction_lines table that converts BI Amt by the exchange rate, but preferably by the latest rate available.  I'm struggling with this because I only know the currency_ID from the transactions table.

 

The joins exist between each of the tables I've listed.  Let me know if you need more information, I've tried to include everything that's relevant.

 

Thanks in advance for your help.

 

Gary

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Gary,

 

Please check out the demo here. The solution could be as below.

Column =
VAR maxDate =
    MAX ( 'CurrencyRates'[Date_Effective] )
RETURN
    Transaction_lines[BI Amt]
        * CALCULATE (
            MAX ( 'CurrencyRates'[Exchange_Rate] ),
            'CurrencyRates'[Date_Effective] = maxDate
        )

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors