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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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