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 September 15. Request your voucher.

Reply
jopezzo
Helper I
Helper I

How to create a lookup in order to create cross rates?

Hello everyone!

 

I have a table with exchange rates from Foreign currency to EUR.

 

What I would like to create is a formula/DAX expression in order to calculate cross-rates (for example USD/CHF) for a defined date.

 

Here is a simple example:

 

Let's say I have below table, with data until "Rate" column. I would like to retrieve the CHF rate of 01/01/2017 (0.88) in order to calculate the USD/CHF rate (I guess I would somehow need to use the "divide" and "filter" functions, but I don't know how). Any idea?

 

Thanks for your help!

 

Valid fromFromToRateCHFUSD/CHF 
1/01/2017USDEUR0.840.88=0.84/0.88 
1/01/2017CHFEUR0.88   

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jopezzo,

 

You can add a calculate column and use date and currency name to find the specific value:

CHF = LOOKUPVALUE('Currency'[Rate],'Currency'[Valid from],[Valid from],'Currency'[From],"CHF") 

1.PNG

 

Then add a column to calculate the result.

USD/CHF = [Rate]/[CHF]

2.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @jopezzo,

 

You can add a calculate column and use date and currency name to find the specific value:

CHF = LOOKUPVALUE('Currency'[Rate],'Currency'[Valid from],[Valid from],'Currency'[From],"CHF") 

1.PNG

 

Then add a column to calculate the result.

USD/CHF = [Rate]/[CHF]

2.PNG

 

Regards,

Xiaoxin Sheng

Thanks a lot! That's really great!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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