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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
rbaleche
Advocate I
Advocate I

Grand Total of Measures doesn't match with SUM of row values

Hello,

I've created a measure that multiplies Qty by AVG(unit price). But, when I put that measure in a table, the grand total is performing its original function (that is Qty * AVG(unit price)) instead of summarizing the individuals row values.
According with the screenshot below, the total of 'Total Estoque (#)' column is 156.257,81, which is the result of 6.410 * 24,38, instead of 101.352,97, which is the SUM of the row values in this column...
Can anybody help me please?
Tks in advance.

 

issue grand total.png

 

 

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@rbaleche

 

If “Custo Medio” is a measure, please try to create a measure for “Total Estoque” with formula like below.

 

Measure = 
SUMX ( Table1, CALCULATE ( SUM ( Table1[Qtde] ) ) * Custo Medio )

Grand Total of Measures doesn't match with SUM of row values_1.jpg

 

Best Regards,

Herbert

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, I need help on this issue as well. I've tried using the formula but it still doesn't work.

May I know how to solve this? Could it be due to the relationship models involved?

The correct formula for Wty$ = (Rate$ * PPMCp) + Consumed_R$NRS)

 

Capture.PNG

v-haibl-msft
Microsoft Employee
Microsoft Employee

@rbaleche

 

If “Custo Medio” is a measure, please try to create a measure for “Total Estoque” with formula like below.

 

Measure = 
SUMX ( Table1, CALCULATE ( SUM ( Table1[Qtde] ) ) * Custo Medio )

Grand Total of Measures doesn't match with SUM of row values_1.jpg

 

Best Regards,

Herbert

@v-haibl-msft

It worked perfectly! Thank you very much!

Regards
Rafael

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.