Forum Discussion
glaso-is
8 years agoFrequent Visitor
DAX: Cumulative Total Applying filters
Hi, I was trying to get the cumulative total from a filtered dataset selecting some years in the slicer, but I'm always obtaining the cumulative from the whole dataset only for the selected years...
popov
Resolver III
8 years agoHi, glaso-is
If I correct understud, you need to use ALLSELECTED() function, something like this:
Cumulative Total Applying filters :=
CALCULATE (
[Total Sales];
FILTER (
ALLSELECTED ( 'Calendar' );
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
Anonymous
6 years agoNot applicable
Thank you!!!