Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
cons_austria03
New Member

Running Total Zero

I have a very simple measure but the latest month is displaying zero since I have not added anything new for the latest month. In this scenario how can I get the value from last month instead of displaying zero?

 

Measure below: 

Running Total =CALCULATE([Discovered Servers],FILTER(ALL(chargeableserverstrendreport), chargeableserverstrendreport[Discovery Date] <= MAX (chargeableserverstrendreport[Discovery Date])))

 

chargeableserverstrendreport has a relationship with my date table and display running total per month using the month field from the date table

 

My data below, I need the Running Total for Feb2023 to show 9 instead of zero

 

MonthCountRunning Total (what I'm getting)Running Total (what I need)
Oct2022111
Nov2022344
Dec2022377
Jan2023299
Feb2023009
Total999

 

1 REPLY 1
andhiii079845
Solution Sage
Solution Sage

[Discovered Servers] is a measure, right? I miss a sumx or something in the caluclate function.
You can try this:

Running Total =
Var _discover =  [Discovered Servers]
Var _function = 
CALCULATE([Discovered Servers],FILTER(ALL(chargeableserverstrendreport), chargeableserverstrendreport[Discovery Date] <= MAX (chargeableserverstrendreport[Discovery Date])))
RETURN if(_discover=0,0,_function)

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.