Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
98 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |