March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |