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.
I need help with running total measure. I cant figure out how to fill the blanks in my running total calculations. I dont need blanks. They should be filled by previous value if the appropriate cell is eq. 0
This is how it should look like
I use this measure to calculate Running totals
RunningTotal = CALCULATE(
COUNT('Dataset'[ArchDate]),
FILTER( ALLSELECTED('Dataset') ,
SUMX( FILTER( 'Dataset', EARLIER( 'Dataset'[ArchDate] ) <= 'Dataset'[ArchDate] ), COUNT('Dataset'[ArchDate] ))
))
This is my sample pbix
Solved! Go to Solution.
That's a pretty odd measure with a SUMX being used as a boolean filter inside FILTER.
Try something simpler like this:
RunningTotal =
VAR CurrDate = MAX ( MyCalendar[Date] )
RETURN
CALCULATE (
[Totals],
ALLSELECTED ( MyCalendar ),
MyCalendar[Date] <= CurrDate
)
That's a pretty odd measure with a SUMX being used as a boolean filter inside FILTER.
Try something simpler like this:
RunningTotal =
VAR CurrDate = MAX ( MyCalendar[Date] )
RETURN
CALCULATE (
[Totals],
ALLSELECTED ( MyCalendar ),
MyCalendar[Date] <= CurrDate
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |