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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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