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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
PBIraja
Frequent Visitor

Hide/Unhide Slicer visual based on another column values(0,1)

Hi all

 

How to Hide/Unhide Slicer visual based on another column values

the column having 0 AND 1 only

1=manger

0= empolyee

if column value is 1 unhide the slicer

if column value is 0 hide the slicer.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PBIraja ,

 

I think you just need to create a sum measure and add that measure into the visual level filter of your Slicer and set it to show items when value =1. Then the values of your Slicer will unhide when value in that column = 1 and hide when value = 0.

Measure:

Filtre Measure = 
SUM('Manager / Employee'[Column])

Result is as below.

Column value =1

2.png

Column value =0

1.png

Best Regards,
Rico Zhou

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @PBIraja ,

 

I think you just need to create a sum measure and add that measure into the visual level filter of your Slicer and set it to show items when value =1. Then the values of your Slicer will unhide when value in that column = 1 and hide when value = 0.

Measure:

Filtre Measure = 
SUM('Manager / Employee'[Column])

Result is as below.

Column value =1

2.png

Column value =0

1.png

Best Regards,
Rico Zhou

 

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

 

amitchandak
Super User
Super User

@PBIraja , I doubt you can hide, you can change color based on the selected value

 

if(selectedvalues(Table[Slicer]), "Black", "White")

 

you can use this in color FX option with field value option

 

 

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

can you show me the sample  test case(pbix file) how it change colour based on that one column.

value 0 white

value 1 black

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.