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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
talkprem
Helper I
Helper I

Show or Hide a Slicer based on Report URL or button

Hi All,

 

Actually i am looking for a solution where i Show or Hide a Slicer based on Report URL or button.

I have a Region slicer which needs to be visible for a particular country is selected via report URL.

 

example - https://app.powerbi.com/groups/dfdsdfffsf/reports/sdsdsdnskn?filter=table1/countrycode eq 'country1' 

 

one country has regions but other country dont so can we show the slicer based on the report URL selection?

If this is not possible then how to create buttons to show or hide region slicer.

 

Thanks

Prem

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @talkprem 

You could add a filter to the slicer itself that returns the slicer title.

Slicer Filter Measure =
If(
SelectedValue(table1[countrycode]) = "country1","Slicer Name", BLANK())

 

Add this into the Filter Pane and filter to "Slicer Name" and also set the slicer header to this visual.

Finally create a visual that makes the slicer backgroun transparent "#FFFFFF00" instead of blank.

SamWiseOwl_0-1725435260522.png

Above my Region = East Midlands so everything is hidden.

SamWiseOwl_1-1725435311714.png

 

Here the Region = London so the slicer is visible.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Super User
Super User

Hi @talkprem 

You could add a filter to the slicer itself that returns the slicer title.

Slicer Filter Measure =
If(
SelectedValue(table1[countrycode]) = "country1","Slicer Name", BLANK())

 

Add this into the Filter Pane and filter to "Slicer Name" and also set the slicer header to this visual.

Finally create a visual that makes the slicer backgroun transparent "#FFFFFF00" instead of blank.

SamWiseOwl_0-1725435260522.png

Above my Region = East Midlands so everything is hidden.

SamWiseOwl_1-1725435311714.png

 

Here the Region = London so the slicer is visible.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

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.