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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Bahneby
Frequent Visitor

Hide Visual if too many categories selected

Hello everyone,

 

I would like to hide a clustered column chart, if too many categories are selected from slicer.

 

Bahneby_0-1652434155990.png

 

 

If there are for example more than 4 categories selected, the visual will be too full and one cannot compare the values.

Is there an option to hide the visual, if there are more than 4 categories selected?

 

One option is to put a card in front of the picture, but then, there are no interactions with this visual possible.

I only found solutions, to hide visuals, if exact one category is chosen.

 

Thank you in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Bahneby , Try to create a measure like

if(calculate(distinctcount(category[category]), allselected()) >4, Blank(), [measure])

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Bahneby , Try to create a measure like

if(calculate(distinctcount(category[category]), allselected()) >4, Blank(), [measure])

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

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors