Forum Discussion
AishwaryaS
5 years agoFrequent Visitor
Dynamic Running Total
Hi, I want to calculate cumulative sum of quantity based on each material considering date, ID and Item columns, and also while a slicer filter is selected the cumulative sum must dynamically change ...
- 5 years ago
AishwaryaS , Try a measure like
calculate(sum(Table[Quantity]), filter(allselected(Table), Table[Material] = max(Table[Material]) && Table[Date] <= max(Table[Date])))
amitchandak
5 years agoSuper User
AishwaryaS , Try a measure like
calculate(sum(Table[Quantity]), filter(allselected(Table), Table[Material] = max(Table[Material]) && Table[Date] <= max(Table[Date])))
Brinki
3 years agoFrequent Visitor
Hello Amit,
And what about last year?
I'm trying to make it dynamic without year filters.
Thanks,
Stephen