Forum Discussion
SUMX calculated Total different from Aggregation
I'm sure this is a really simple issue that I am completely missing but when I am calculating a column total based on two variables;
Sector "WCB"
RSP Period "20/09"
CALCULATE (
SUMX ( 'Fct SG PTL ODP Period', 'Fct SG PTL ODP Period'[xx PTL ODP] )
)
Hi btwilkins ,
Since I don’t know the formula of the measure 'XX PTL ODP ', I can’t find the cause of the error, you can try to do so.
XXPTL TOTAL = IF( HASONEVALUE('Fct SG PTL ODP Period'[Sector]), 'Fct SG PTL ODP Period'[xx PTL ODP], SUMX( ALL('Fct SG PTL ODP Period'), 'Fct SG PTL ODP Period'[xx PTL ODP]) )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
8 Replies
- Greg_Deckler
Community Champion
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- btwilkinsFrequent Visitor
My issue isn't being resolved because XX PTL ODP is a calculated Measure IF's and SUMs don't work?
- Greg_Deckler
Community Champion
btwilkins - Let's back up. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
- amitchandak
Super User
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.