Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 | |
| A | 1.2 | 2 | 1 | |
| A | 1.3 | 3 | 3 | =1+2 |
| A | 1.4 | 4 | 6 | =1+2+3 |
Solved! Go to Solution.
Please try this column
Column =
CALCULATE (
SUM ( Table1[amount] ),
FILTER (
ALLEXCEPT ( Table1, Table1[Name] ),
Table1[Date] < EARLIER ( Table1[Date] )
)
)
Please try this column
Column =
CALCULATE (
SUM ( Table1[amount] ),
FILTER (
ALLEXCEPT ( Table1, Table1[Name] ),
Table1[Date] < EARLIER ( Table1[Date] )
)
)
Yes, it works. Thanks.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |