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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Solution Sage
Solution Sage

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.