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
RonSon2015
Frequent Visitor

Applying exchange rate to every row

Hello,
I'm currently setting up a data model for monthly reporting where I need to convert the figures from foreign currency to EUR. However, it works fine on total level but does not show the correct figures on deepest level.

Setup

:2021-09-02_15h47_01.png
Sales_Cond = fact table
Calendar = calendar
Exchange_Rate = table with dates and exchange rates from foreign currency to EUR
Currency = distinct currencies (USD, GBP, DKK, etc.)

Filter in output: e.g. Month = 6; Year = 2021; Country = Denmark

Formula:
Turnover YTD current year (EUR):=

SUMX('Currency';

DIVIDE(

CALCULATE(SUM(Sales_Cond[Turnover value (LC)]);Sales_Cond[Customer]="ZLBO";DATESYTD('Calendar'[Date];"12/31"))*-1;

[Exchange Rate YTD CY]

)

)

 

Exchange Rate YTD CY:=SELECTEDVALUE(Exchange_Rate_MTD_YTD[YTD])


The total is fine on YTD and country level. However, if I drag in a lower level like products, the total is still fine but on product level it's in most cases wrong (either empty or wrong value).

 

 

Thanks a lot in advance!

1 ACCEPTED SOLUTION
RonSon2015
Frequent Visitor

I've solved the problem. When switching the filter direction for currency and fact table (sales cond) from both ways to currency to fact table it works.

View solution in original post

1 REPLY 1
RonSon2015
Frequent Visitor

I've solved the problem. When switching the filter direction for currency and fact table (sales cond) from both ways to currency to fact table it works.

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.

Top Solution Authors
Top Kudoed Authors