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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Sum of measure not correct

incorrect sum.JPG

 

Hello,

 

I have the following results from measures, see picture.

If I sum all values it supossed to be 214,923.79 and 170,897.42.

 

Any idea why the measure doesn´t properly? Smiley Frustrated

 

cheers

 

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

I’ve checked it and it works well on my side.  Please find the details below:

Assuming that we have original column A and B, we’d like to sum the measure of [B] – [A], formula could be like this 

 

Measure = SUMX(Table2,CALCULATE(SUM(Table2[B])-SUM(Table2[A])))

 

sumx.png

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hello,

Thank you for your answers. Unfortunately, it does not work, but I may have found a clue why.
My measure takes the maximum of each row from two columns. But it takes for the sums also the maxima of the two column sums. Actually it should use the sum of the individual values.

 

PrognEndw VAR = MAX(<Table>[Bud+Prog. VAR];[MAX-IstSoll VAR])

 

incorrect sum2.JPG

Hi @Anonymous,

 

Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Grand totals are just the figures after one or more filters is removed. The fact that they sum out is basically a coincidence. You need to force the totals to be correct. You can follow this template:

Force Sum =
sumx( values( <whatever is on rows in your table>), [measure] )

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors