Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have data set as shown below
I created a measure for the cumulative total with the below formula
CumulativeSale = CALCULATE ( SUM ( 'Table'[Product sale] ), FILTER ( ALL ( 'Table'[Date] ), 'Table'[Date] <= MAX('Table'[Date] ) ) ) |
But when I try to change the x-axis to month or week... output generated is incorrect.
Hi @prashantg364
Please try
CumulativeSale =
CALCULATE (
SUM ( 'Table'[Product sale] ),
'Table'[Date] <= MAX ( 'Table'[Date] ),
ALL ( 'Table' )
)
@prashantg364 Try this: Better Running Total - Microsoft Power BI Community
Thanks for the solution... it works for my dataset.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |