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
eduardoa
Advocate I
Advocate I

Managing a wrong total result in a visual

Hello,

In the table, we have multiple currencies with corresponding rates.

The total result should simply be the multiplication of [Amount] * [LastRate].

While the total displayed in Excel is correct, Power BI is returning an incorrect result.

Could you please review the attached results from both Excel and Power BI? Any assistance would be greatly appreciated!


Wrong total.jpg

1 ACCEPTED SOLUTION

Hi Here is your result

Rupak_bi_0-1731071552997.png

Rupak_bi_1-1731071594051.pngRupak_bi_2-1731071620428.png

Hope images are self explainatory. 

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

View solution in original post

7 REPLIES 7
Rupak_bi
Super User
Super User

Hi @eduardoa ,

The simplest way to achieve this is to create a calculated column and then take sum in the matrix. To do it in DAX use below sintex.

 

Corrected total =

Var tot_amt = calculate(sum( amount), all(table))

Return 

Sumx(table, amount*last rate/tot_amt)*tot_amt

This will work. If fails, Let me know. I will create table with the image you shared and explain.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Hello @Rupak_bi ,

 

Thanks so much. Will try and let you know. 

Hello @Rupak_bi 
Unfortunately, it didn’t work.
The calculated column returned no values

Hi Here is your result

Rupak_bi_0-1731071552997.png

Rupak_bi_1-1731071594051.pngRupak_bi_2-1731071620428.png

Hope images are self explainatory. 

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Thanks so much @Rupak_bi 

Cheers!

lukiz84
Memorable Member
Memorable Member

Use SUMX

 

SUMX(YourTable, YourTable[Amount]*YourTable[LastRate])

Thanks but already tried with the same wrong results

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!

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.