Forum Discussion
H_Jones
8 years agoHelper I
cumulative sum issues when filtering
I am having some issues with my cumulative sum. I initially thought it was working fine, until I added a date slicer onto the page and now when that is used the sum goes bonkers, I dont even understa...
MFelix
8 years agoSuper User
Hi H_Jones,
When using the ALL function on your measure what happens is that the calculations are made based on the total table values and overlaps the filter you have in your visuals so the values it gets return is based on the full table and not on the context.
If you want to add a slicer try to change your formula to:
Cumulative Pledges =
CALCULATE (
[Pledges],
FILTER (
ALLSELECTED ( 'Attrition Data'[Attrition Flag] ),
'Attrition Data'[Attrition Flag] <= MAX ( 'Attrition Data'[Attrition Flag] )
)
)
Regards,
MFelix