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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.