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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Robert_Kopp
Regular Visitor

Multiple Yearly FX conversions and whether to have larger fact tables or use DAX

I have a question for the community.

 

I have a fact table of 22M rows and currently 9 rows (7 Dimension Keys, 1 Amount field, 1 Date Field).  

The amount field is in local currency and my end-users want to be able to view the amounts in USD but with a variety of conversion rates based on yearly FXs (5 FXs for each currency). 

 

The 2 approaches that I came up with are below. 

1. Join the FX rate for each year to the Fact table in Power Query. 

    Calculate out an additional column in my fact table for each yearly FX

    Remove the FX rate columns as my last step in power query

    Create a small table which would perform the selection of which FX year they want and a DAX which does the Sum of the right column in my fact table. 

 

2. Build a currency table which has each FX in it with columns for Year and Currency Code

   Write my DAX expression to perform the FX conversion for each currency and provide the overall sum as a result

 

I'm not sure which method is going to have better performance or if there is another method that I'm not seeing. Method 1 is simple DAX but does add 5 additional decmial fields to my Fact table. Method 2 is a slimmer fact table but the DAX needs to carry more of the weight. 

 

Let me know your thoughts

 

    

 

 

 

 

1 REPLY 1
lbendlin
Super User
Super User

In our industry we use monthly FX rates.  So we have a reference table by currency and yearmonth that we then tie into our data model as needed.  Would that be a possible approach for you? Or are your cutovers happening in random intervals?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.