Forum Discussion
Anonymous
6 years agoNot applicable
Sum till selected month
Hey there, I want to calculate the total amount till the selected month in the slicer. I´ll show the result in a card.
- 6 years ago
Anonymous , No clear Try like
Till Date = VAR _max = MAXX(Allselected('Calendar'), 'Calendar'[DATE] ) return CALCULATE ( SUM ( Sales[amount] ), FILTER ( all('Calendar'),'Calendar'[DATE] <=_max), )
amitchandak
6 years agoSuper User
Anonymous , No clear Try like
Till Date =
VAR _max = MAXX(Allselected('Calendar'), 'Calendar'[DATE] )
return
CALCULATE (
SUM ( Sales[amount] ),
FILTER ( all('Calendar'),'Calendar'[DATE] <=_max),
)- Anonymous6 years agoNot applicable
It works perfectly, it was what I looking for. Thank you.