Forum Discussion
MiaZhao
8 years agoHelper I
Cumulative total based on a date column
Hi everyone, How to calculate a cumulative sum based on the date column? For example, how to calculate the Total in the following table? Name Date amount Total A 1.1 1 0 ...
- 8 years ago
Please try this column
Column = CALCULATE ( SUM ( Table1[amount] ), FILTER ( ALLEXCEPT ( Table1, Table1[Name] ), Table1[Date] < EARLIER ( Table1[Date] ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
Please try this column
Column =
CALCULATE (
SUM ( Table1[amount] ),
FILTER (
ALLEXCEPT ( Table1, Table1[Name] ),
Table1[Date] < EARLIER ( Table1[Date] )
)
)- MiaZhao8 years agoHelper I
Yes, it works. Thanks.