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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to get running total to ignore null values

Capture.PNGI have built a graph of running totals for different metrics, however for the lines with null values, they are including in the running total and just showing up as straight lines. How would I fix this?

1 ACCEPTED SOLUTION

 

Try it


IF([2016-1 Cash Collections]=0,"",
CALCULATE(
         [2016-1 Cash Collections],
         FILTER(
               ALLSELECTED('Power BI Data'[MOB]),
               ISONORAFTER(
                          'Power BI Data'[MOB], 
                           MAX('Power BI Data'[MOB]), 
                           DESC)
               )
         )
   )

 

 

View solution in original post

8 REPLIES 8
rafaelmpsantos
Responsive Resident
Responsive Resident

show us the measure created for this values.

Anonymous
Not applicable

CALCULATE(
[2016-1 Cash Collections],
FILTER(
ALLSELECTED('Power BI Data'[MOB]),
ISONORAFTER('Power BI Data'[MOB], MAX('Power BI Data'[MOB]), DESC)
)150000

This is my running total metric that i plot

 

Try it


IF([2016-1 Cash Collections]=0,"",
CALCULATE(
         [2016-1 Cash Collections],
         FILTER(
               ALLSELECTED('Power BI Data'[MOB]),
               ISONORAFTER(
                          'Power BI Data'[MOB], 
                           MAX('Power BI Data'[MOB]), 
                           DESC)
               )
         )
   )

 

 

Anonymous
Not applicable

Apologies, I entered the formula in wrong. This is correct thank you!

good to know... If you should please give me a positive feedback ...thanks

Anonymous
Not applicable

This did not work

Still showing the line?
Anonymous
Not applicable

Yes, the line is still showing

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.