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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Create a FX Table with Existing Data

I'll preface this inquiry by saying I'm a finance guy with some coding experience which makes me a little dangerous.  

 

The concept is essy, I can determine historical FX rates using exisitng data since our SAP records values as USD and LC for local currency.  USD vs. LC Euros for March 2016, USD vs. LC SGD for May 2015, etc.

 

I know I can create new tables from existing data, but is the new data static only?  Can i pull rows of months and currencies then use measures to get an aggregate of the USD value next to the aggregate LC value to then do FX calculations by currency and period or month?

 

I thought I might be able to do this within my existing data set, but I think it becomes far too complicated when you have many to one reporting.  If you have data with say five currencies rolled into one global report then I believe it is far more complicated to segregate those other currencies and get a consolidated FX neutral value.

 

That's my end game is to get FX neutral reporting.  Where if I have results today for February 2017 reporting then how can I get FX neutral reporting for either the same period last year or as compared to rates used in say September of the prior year when budget was set.

 

If anyone's eyes are lighting up because I noted same period as last year then I'll let you know we are on a fiscal 4-4-5 calendar and we use a custom dates table to not only set periods but also do YoY calculations.

 

Any suggestions are welcome and I'd really appreciate the insight.

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Have you tried the solution provided by ImkeF above? Does it work in your scenario? If you still have any question on this issue, feel free to ask.Smiley Happy

 

Regards

ImkeF
Community Champion
Community Champion

I strongly recommend to turn the table with monthly FX-rates into a table with daily FX-rates in the query-editor. That way you can retrieve all necessary date-aspects from your date-dimension and don't have to bother about different date-granularities in DAX.

 

Simply:

1) Reference your date-dimension(table) and remove all columns, but: Date, Month and Year

2) Merge your FX-table on Month and Year with it and expand the necessary columns

3) Remove Month and Year- columns

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.

Top Solution Authors