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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Call bookmark while changing the Slicer

Hi All

 

There is an requirement that I want to call the boomark on the change of the Slicer. There are 2 bookmark and which need to call, it depend on the Slicer value.

 

My apporach is that firstly, we will call "Dataselected" event then "Get Slicer State".

 

I am facing challenge while picking the visual ID from the dataselected event. It will be great, if anyone did the same thing in the past and can provide the code for the same. It will great help of me.

 

Kind Regards

Ashwani

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Power BI doesn't support to show or hide visual/bookmark based on slicer.

You can try my workaround.

Firstly build some different pages and hide other pages except of Home page.

1.png

Build a table named 'navigation' as below.

2.png

Build a slicer by Location column. Make sure that you have select Single Select in Format.

3.png

Build a measure:

Navigation Page = SELECTEDVALUE('navigation'[Location],"Home")

Build a Button, Select Page navigation Type in Action and add 'FX' Destination in Action.

5.png

Now you can go to different pages with different bookmarks by button and slicer.

Ex: Select Program in Slicer, and click Button.

1.png

We will go to Program page. In this page we can use Bookmark1 and Bookmark2.

2.png

Select Program Qol in Slicer and click Button.

4.png

We will go to Program Qol page. In this page we can use Bookmark2.

3.png

You can download the pbix file from this link.

For more details you can refer to this blog.

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

Power BI doesn't support to show or hide visual/bookmark based on slicer.

You can try my workaround.

Firstly build some different pages and hide other pages except of Home page.

1.png

Build a table named 'navigation' as below.

2.png

Build a slicer by Location column. Make sure that you have select Single Select in Format.

3.png

Build a measure:

Navigation Page = SELECTEDVALUE('navigation'[Location],"Home")

Build a Button, Select Page navigation Type in Action and add 'FX' Destination in Action.

5.png

Now you can go to different pages with different bookmarks by button and slicer.

Ex: Select Program in Slicer, and click Button.

1.png

We will go to Program page. In this page we can use Bookmark1 and Bookmark2.

2.png

Select Program Qol in Slicer and click Button.

4.png

We will go to Program Qol page. In this page we can use Bookmark2.

3.png

You can download the pbix file from this link.

For more details you can refer to this blog.

 

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. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.