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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to hide cumulative bars if null/blank

Hi all,

 

I'm currently working on this chart, and as Q3 and Q4 data are not in yet, is there a way I can hide the Q3 and Q4 dark blue bars?

GregGiamz_0-1689930806226.png

 

This is the simplified dataset:

DateQ1Q2Q3Q4
realized 8020NULLNULL
forecasted68927374


I had used the 'running total' quick measure to get the cumulative totals, and this was the resulting formula for 'realized' chart:

CALCULATE(

    SUM(Realized),

    FILTER(

        CALCULATETABLE(

            SUMMARIZE('Calendar', 'Calendar'[CurrentDayOffset], 'Calendar'[Date]),

            ALLSELECTED('Calendar')

        ),

        ISONORAFTER(

            'Calendar'[CurrentDayOffset], MAX('Calendar'[CurrentDayOffset]), DESC,

            'Calendar'[Date], MAX('Calendar'[Date]), DESC

        )

    )

)

 

Any help would be appreciated, thank you!
 

 

1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @Anonymous ,

Please ignore blanks during the calculation. Your measure should look as below:

If(IsBlank(Realized),Blank(),

CALCULATE(

    SUM(Realized),

    FILTER(

        CALCULATETABLE(

            SUMMARIZE('Calendar', 'Calendar'[CurrentDayOffset], 'Calendar'[Date]),

            ALLSELECTED('Calendar')

        ),

        ISONORAFTER(

            'Calendar'[CurrentDayOffset], MAX('Calendar'[CurrentDayOffset]), DESC,

            'Calendar'[Date], MAX('Calendar'[Date]), DESC

        )

    )
)

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

1 REPLY 1
Kishore_KVN
Super User
Super User

Hello @Anonymous ,

Please ignore blanks during the calculation. Your measure should look as below:

If(IsBlank(Realized),Blank(),

CALCULATE(

    SUM(Realized),

    FILTER(

        CALCULATETABLE(

            SUMMARIZE('Calendar', 'Calendar'[CurrentDayOffset], 'Calendar'[Date]),

            ALLSELECTED('Calendar')

        ),

        ISONORAFTER(

            'Calendar'[CurrentDayOffset], MAX('Calendar'[CurrentDayOffset]), DESC,

            'Calendar'[Date], MAX('Calendar'[Date]), DESC

        )

    )
)

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors