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! Learn more

Reply
Paulien1989
Advocate II
Advocate II

Wrong measure total is affecting other measure: help!

I browsed the forum but I couldn't find a solution for my particular case.

 

power bi help.JPG

 

Measure "time in days / number" (if time in days >=1) is dividing the sum of 'time in days' by 'number'. 'Number' is a measure: distinctcount of column ID where 'time in days' >=1. On a row level, everything works fine. But the (sub)totals are all wrong: the total of column Number says 15 while it should be 6! And so my 'time in days / number' measure is showing 4,23 while it should be 10,57. 

 

How can I make sure that the column Number is giving me the right (sub)total?

1 ACCEPTED SOLUTION
kcantor
Community Champion
Community Champion

@Paulien1989 

Your totals are not incorrect, per se, they are just not behaving as you expect. One of the biggest differences with DAX and working in Excel is that each cell is calculated based upon its own merits and these merits do not always add up. Your dax just needs to be adjusted to account for this by using either ISFILTERED, HASONEVALUE, or the VALUES function.

This blog article has fantastic coverage of the solutions for this. https://powerpivotpro.com/2012/03/subtotals-and-grand-totals-that-add-up-correctly/

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
kcantor
Community Champion
Community Champion

@Paulien1989 

Your totals are not incorrect, per se, they are just not behaving as you expect. One of the biggest differences with DAX and working in Excel is that each cell is calculated based upon its own merits and these merits do not always add up. Your dax just needs to be adjusted to account for this by using either ISFILTERED, HASONEVALUE, or the VALUES function.

This blog article has fantastic coverage of the solutions for this. https://powerpivotpro.com/2012/03/subtotals-and-grand-totals-that-add-up-correctly/

Hope this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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