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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
HanishR
Frequent Visitor

Incorrect total in Matrix Total

I have a Matrix with a currency conversion in place for the Values, 
The currency conversion rate is picked up by the following formula: 

TRNRate = MIN('Currency Table'[Exchange Rate])
Where my exchange rate table has ONE value for every month and currency combination. 
Column headers in Exchange Rate Table:
Date | Report Currency | Transaction Currency | Exchange Rate
e.g. 1st of month | EUR | GBP | 0.8578
I have the relationships for dates and Sales Currency linked to Transaction Currency
My Conversion rate is calculated with the following formula: 
Sales Converted =IF(HASONEVALUE('Report Currency'[Report Currency]),SUMX(Sales,Sales[Sales])/[TRNRate])

PBIDesktop_cpbguDWvb7.png
As you can see the Converted row for UK, is not in fact totaling correctly, 

It is taking the TOTAL SALES for all months in GBP Currency and performing the conversion currency on the Min rate of all months, as opposed to individual month basis. 

Please let me know if you need any more info, and thanks in advance for the help. 

Cheers

Hanish
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HanishR ,

Please try to update your measure with the below formula and applied this new created measure on the visual to replace measure Sales Converted:

Measure=SUMX(VALUES('TABLE'[Category]),SUMX(VALUES('TABLE'[COUNTRY]),[Sales Converted]))

Or you can refer the contents in the following links to update the formula of your measure and get the correct results:

Totals incorrect

Why Your Total Is Incorrect In Power BI

If the above methods can't help you, you can provide some sample data which applied on the visual and existed relationship if the data from multiple tables.

Best Regards

Rena

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @HanishR ,

Please try to update your measure with the below formula and applied this new created measure on the visual to replace measure Sales Converted:

Measure=SUMX(VALUES('TABLE'[Category]),SUMX(VALUES('TABLE'[COUNTRY]),[Sales Converted]))

Or you can refer the contents in the following links to update the formula of your measure and get the correct results:

Totals incorrect

Why Your Total Is Incorrect In Power BI

If the above methods can't help you, you can provide some sample data which applied on the visual and existed relationship if the data from multiple tables.

Best Regards

Rena

amitchandak
Super User
Super User

@HanishR , Try to push the row context

Sales Converted new =
sumx(summarize(Table, Table[category],Table[Country],"_1",[Sales Converted]),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors