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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Automatic hide KPI Card

Hi Power Users,

I have cretead 6 card visuals for upcoming events where there a visual filter on ID=1. I would like to automatically hide the visuals if the ID is not 1. 

 

Right i can achieve this if i have slicer on the page, I have written 2 dax measures. 

1. Measure-1: IF(ISFiltered(ID, "", "No upcoming Events')

Measure-2: IF(ISFILTERED('ID),"#FFFFFF00","White")

I used measure-2 in the background conditional formatting..

 

The users don't want the slicer on the page.

 

Thanks,

1 ACCEPTED SOLUTION

Hi, @Anonymous 

Unfortunately, Power BI doesn't have such a feature to hide/show visualization in a dynamic way.

You can go to this case for more information:

https://community.powerbi.com/t5/Desktop/Possible-to-hide-a-visual-if-value-is-blank/td-p/780205 

 

I suggest you display a paragraph of text(like "There is no value") instead of just hiding the Visual. You can go to this video to explore more possibilities:

https://www.youtube.com/watch?v=aWIXFDfV3Fo&feature=youtu.be 

 

 

Best Regards,

Community Support Team _Robert Qin

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Not very clear,

 

One of the three

IF(ISFILTERED(Table[ID]),"White","#FFFFFF00")
IF(ISFILTERED(Table[ID]) && hasonevalue(Table[ID]),"White" ,"#FFFFFF00",)
IF(ISFILTERED(Table[ID]) && hasonevalue(Table[ID]) && max(Table[ID]) =1,"White" ,"#FFFFFF00")

 

Refer: https://www.youtube.com/watch?v=hXg3kRFSGjA&t=197s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

HI Amit,
Thanks for the reply. ID field has multiple values for each kard 1,2,3,4,5,6. I would like to hide the Card visual if there no value. 

Hi, @Anonymous 

Unfortunately, Power BI doesn't have such a feature to hide/show visualization in a dynamic way.

You can go to this case for more information:

https://community.powerbi.com/t5/Desktop/Possible-to-hide-a-visual-if-value-is-blank/td-p/780205 

 

I suggest you display a paragraph of text(like "There is no value") instead of just hiding the Visual. You can go to this video to explore more possibilities:

https://www.youtube.com/watch?v=aWIXFDfV3Fo&feature=youtu.be 

 

 

Best Regards,

Community Support Team _Robert Qin

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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