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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
szeho
Regular Visitor

How to hide slicer

I have a slicer in left side, I need to show two slicer(A&B) and one legend) once I choose one of the options on this slicer, and hide the legend at the same time.

szeho_0-1654569155239.png

Now, I can hide the legend once I choose it, but that two slicer can not hide when the left side slicer is 'All'.

szeho_1-1654569642220.png

 

I use the same funtion for it.

szeho_2-1654569721508.pngfor legend

szeho_3-1654569831888.pngfor slicer

 

display control-S =
var a = SELECTEDVALUE(D_S_B[Strategic Bank Partner])
return IF(ISBLANK(a),0,1)
 
Why I can't hide slicer A & B?
1 REPLY 1
amitchandak
Super User
Super User

@szeho , Try this one

int(isfiltered(calculate(D_S_B[Strategic Bank Partner], allselected())))

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.