Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Within PowerBi is there a way to have a cumulative total visible in the edit queries screen?
This is how I would tackle this in Excel. Sort by "unique' then by "date", simple IF formula:
thank you in advance!
Solved! Go to Solution.
Hi @OKgo,
To get a cumulative total column, please try:
Running total Col =
CALCULATE (
SUM ( 'Table1'[Value] ),
FILTER (
ALLEXCEPT ( 'Table1', 'Table1'[unique] ),
Table1[Date] <= EARLIER ( Table1[Date] )
)
)
To create a running total measure, please refer to:
Running total measure =
CALCULATE (
SUM ( Table1[Value] ),
FILTER (
ALLEXCEPT ( Table1, Table1[unique] ),
Table1[Date] <= MAX ( Table1[Date] )
)
)
Best regards,
Yuliana Gu
Hi @OKgo,
To get a cumulative total column, please try:
Running total Col =
CALCULATE (
SUM ( 'Table1'[Value] ),
FILTER (
ALLEXCEPT ( 'Table1', 'Table1'[unique] ),
Table1[Date] <= EARLIER ( Table1[Date] )
)
)
To create a running total measure, please refer to:
Running total measure =
CALCULATE (
SUM ( Table1[Value] ),
FILTER (
ALLEXCEPT ( Table1, Table1[unique] ),
Table1[Date] <= MAX ( Table1[Date] )
)
)
Best regards,
Yuliana Gu
Dear Yuliana, thank you so much! That was exactly the breakthough I needed. I added the column in the modelling tab and the graphs work great. Can you please explain how you got your first screenshot? It looks like a preview from the edit queries screen which looks great.
My best atempt using
https://www.daxpatterns.com/cumulative-total/
However is not working. Not sure how to introduce the filter for unique....
Cumulative Quantity =
CALCULATE (
SUM ( Table1[Value] ),
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |