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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Visual should blank when select more then 1 value in filter.

Hi all,
I have one situation where I need to hide chart data where user select more then one filter value.

Suppose we have one filter where we have Pc, tablet, smartphone if user select pc, visual should filter out and should show the pc data.
if user select more than 1 value in filter, visual should be blank.

I can not convert filter to single select coz I have other visual where this filter should works as multiselect.

Can we create measure to handle this scenario.

1 ACCEPTED SOLUTION
m_alireza
Solution Specialist
Solution Specialist

@Anonymous ,

Try  creating this measure:

 

FilteredColumn = Calculate(IF(
 HASONEVALUE( 'Table'[yourslicercolumn] ),1,0 ), ALLSELECTED ( 'Table' ) )

 

 
Add the measure to the filter level visual of your chart and assign its value to 1 
hasonevaluepic.png

 


If you select more than one value in the slicer, it will appear blank as below:
hasmultiplevaluespic.png

 



View solution in original post

2 REPLIES 2
m_alireza
Solution Specialist
Solution Specialist

@Anonymous ,

Try  creating this measure:

 

FilteredColumn = Calculate(IF(
 HASONEVALUE( 'Table'[yourslicercolumn] ),1,0 ), ALLSELECTED ( 'Table' ) )

 

 
Add the measure to the filter level visual of your chart and assign its value to 1 
hasonevaluepic.png

 


If you select more than one value in the slicer, it will appear blank as below:
hasmultiplevaluespic.png

 



johnt75
Super User
Super User

You could do a check for only 1 item being selected by using HASONEVALUE. If its true then return your measure result, otherwise return blank.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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