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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi everyone, I have a question around how can I reset the cumulative value to 0 after there's a blank value in a table.
What I got from the cumulative formula is (A), where it continues to count after 2 blank forecast days.
I want to be able to reset the blank forecast days back to 0 and start the cumulative calculation again. Can anyone help here?
Thanks!
Date | Forecast | Cumulative Forecast (A) | Cumulative Forecast (B) |
4-mar | 56 | 56 | 56 |
5-mar | 56 | 112 | 112 |
6-mar | 56 | 168 | 168 |
7-mar | |||
8-mar | |||
9-mar | 56 | 224 | 56 |
10-mar | 91 | 315 | 147 |
11-mar | 46 | 361 | 193 |
12-mar | 91 | 452 | 284 |
Solved! Go to Solution.
Hi @PYL019 ,
Please follow the steps to have a try.
Count Blank Value =
CALCULATE (
COUNTBLANK ( 'Table'[Forecast] ),
FILTER ( 'Table', 'Table'[Date] <= EARLIER ( 'Table'[Date] ) )
)
Measure =
CALCULATE (
SUM ( 'Table'[Forecast] ),
FILTER (
ALL ( 'Table' ),
'Table'[Date] <= MAX ( 'Table'[Date] )
&& 'Table'[Count Blank Value] = MAX ( 'Table'[Count Blank Value] )
)
)
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sometimes...
I gave a specific example for a specific product at a specific warehouse. I hope you're able to guide me on how I can build a good report.
Hi @PYL019 ,
Please follow the steps to have a try.
Count Blank Value =
CALCULATE (
COUNTBLANK ( 'Table'[Forecast] ),
FILTER ( 'Table', 'Table'[Date] <= EARLIER ( 'Table'[Date] ) )
)
Measure =
CALCULATE (
SUM ( 'Table'[Forecast] ),
FILTER (
ALL ( 'Table' ),
'Table'[Date] <= MAX ( 'Table'[Date] )
&& 'Table'[Count Blank Value] = MAX ( 'Table'[Count Blank Value] )
)
)
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.