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
Chainfire74
Helper I
Helper I

Show not applicable instead of blank visual

Hi,

 

When a visual has no data to show after using a slicer, I want the visual to show the words "Not Applicable" rather than just a blank visual. Below is the code I currently use, how would I adapt it to show the words "Not Applicable" when no data?

 

MT % =
CALCULATE(
    COUNT(MT[Competency Meets Requirement])
    ,'MT'[Competency Meets Requirement] = "Meets Requirement"
)
/
COUNT(MT[Competency Meets Requirement])
 
Thanks
3 REPLIES 3
jdbuchanan71
Super User
Super User

@Chainfire74 

Try something like this.

MT % =
VAR _Result =
    CALCULATE (
        COUNT ( MT[Competency Meets Requirement] ),
        'MT'[Competency Meets Requirement] = "Meets Requirement"
    )
        / COUNT ( MT[Competency Meets Requirement] )
RETURN
    IF ( ISBLANK ( _result ), "Not Applicable", _Result )

Thanks for the reply, I've tried this code but still get 'Blank' rather than not applicable. Any ideas?

 

Chainfire74_0-1659003652724.png

 

 

Thanks

Hi, @Chainfire74 

Currently, gauge graph does not support showing not applicable instead of blank visual.

 

Best Regards,
Community Support Team _ Eason

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