Forum Discussion
Measure with ALL
Leasie_7 Try:
Total Resolved RCA (Ignore Level 2) for Overturned Only = CALCULATE([Total Resolved RCA],ALLSELECTED('RESOLVED'),KEEPFILTERS(RESOLVED[Outcome]<>"Upheld"))- Leasie_73 years agoFrequent Visitor
I updated your measure to not have the outcome <> upheld because I want the user to be able to look at upheld if they would like.
Total Resolved RCA (Ignore Level 2) = CALCULATE([Total Resolved RCA],ALLSELECTED(RESOLVED))
It works when only one corrective action is selected
However, when I bring in another they get the total between the 2. How do I get "Outreach to Provider" to reflect 54 and "Account Update" to show 45 so I can use it as the denominator for the middle % column on each corrective action category?
I am confused as to why I cannot use "ALL" with Level 2 instead of "ALLSELECTED" for the whole table. Shouldn't it see the visual filter context and apply based on whichever outcomes are selected along with corrective action selected to show in the visual. Maybe I need to use a combination of things to keep corrective action row context, but allow filtering on the whole "Resolved" table as well??
Thanks again
- Leasie_73 years agoFrequent Visitor
Something else quirky is my original measure of:
Total Resolved RCA (Ignore Level 2) = CALCULATE([Total Resolved RCA],all(RESOLVED[Level 2]))has no issue with getting the correct value until you collapse a corrective actioncorrect:incorrect after collapsing "Claim Adjustment/Reprocessed"
I feel like there is just something goofy going on.
- Greg_Deckler3 years agoCommunity Champion
Leasie_7 Really hard to troubleshoot unless you can provide some sample data so that I can mock it up. However, regarding the measure not having the right value when you collapse...
First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e
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
Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8