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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Weighted average rate for total

Hi!

 

I am working on revaluating outstanding balances on a specific date at the exchange rate in the system for that date.

 

As it happens that 2 or more values for a currency's exchange rates get captured in the system on a given date, I pick up the relevant exchange rate via the following measure:
Exchange rate at selected date = MAXX(TOPN(1;FILTER('Exchange Rate';'Exchange Rate'[exchange_date]<=[SelectedDate]);'Exchange Rate'[exchange_date];DESC);'Exchange Rate'[exchange_rate])

 

This works fine for my purposes, BUT on the total line it pulls up the max of all the exchange rates whilst I would rather show the weighted average.

 

The big problem comes in when calculating the total revaluation amount. Per currency it works fine, but instead of adding the total in the total line it calculates the total as Total Balance in Invoiced currency x Max of all exchange rates.

 

The correct answer in the total line for the revaluation amount should be either
1) sum of all the revaluation amounts calculated    or else
2) Total balance in Invoiced currency x weighted average exchange rate



Please help!Capture.PNG

 

0 REPLIES 0

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.