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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Table total different from sum of rows - Problem with measure?

Hi, 

 

I have the following table, but the total of columns "Remaining CPRs", "Committed budget" are not the same as the sum of all the rows. Even though the rows are showing the results of a measure, the total of the table is showing the numbers as if the measure didn't exist.

 

1.JPG

 

Remaining CPR means: if Actuals > CPR then Remaining CPR=0... Else Remaining CPR= CPR - Actuals...

 

Here is the measure for Remaining CPR: 

 

Remaining CPRs = if(sum('Table 3'[CPR])-sum('Table 2'[IC Actuals])<0,0,sum('Table 3'[CPR])-sum('Table 2'[IC Actuals]))
 
Could someone explain me what's going on?
 
Thank you very much, I'm going crazy over here.
1 REPLY 1
Greg_Deckler
Super User
Super User

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.