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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
danielboi
Helper I
Helper I

Calculating FX / currency Variation in Sales Report

Hello community,

 

I want to calulate sales price variations, which is a comparison of budget price, budget volume and actual price, actual volume.

 

It starts with eliminating currency effects. that means "Actual Sales in EUR x (1- Budget FX Rate / Actual FX Rate). There is one FX rate for the planning for every month, i.e. whole year 2022. In actual we have different rates per month.

 

My data model has following tables:

 

1. FACT Budget Data

Attributes: Material number, customer code, date (month),

Values: budget volume, budget sales

2. FACT Actual Data

Attributes: Material number, customer code, date (month)

Values: actual volume, actual sales

3. FACT FX Rates

Attributes: date (month), Version (Budget or actual), Currency (EUR, USD, JPY), 

Values: FX Rate

4. Dimension Material

Attributes: Product description as well the invoicing currency

5. Dimension Date Table

 

I guess it is not ideal to have the invoicing currency in the Dimension Material. but my data source did not deliver for the budget data the currency for the planning. It is however working as a material number is invoiced only in one currency.

 

Fact Budget Data and Fact Actual Data are connected to the dimension Material and Date tables

Fact FX Rates is connected to Dimension Date Table

 

The formula I am looking for will get the actual sales of a material number in a specific month, then pull the applicable currency and makes a division with budget FX rate and actual FX rate

 

Thanks for any hints upfront!

1 ACCEPTED SOLUTION
danielboi
Helper I
Helper I

OK, managed to solve it on my own. 

 

Since I am doing the model also in Excel I am cannot use bi-directional filtering. Of course I tried using crossfilter, it did not work. Over night I got the epiphany how to properly use crossfilter. Issue is solved!

View solution in original post

1 REPLY 1
danielboi
Helper I
Helper I

OK, managed to solve it on my own. 

 

Since I am doing the model also in Excel I am cannot use bi-directional filtering. Of course I tried using crossfilter, it did not work. Over night I got the epiphany how to properly use crossfilter. Issue is solved!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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