cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors