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
dbeavon3
Memorable Member
Memorable Member

Sync slicers - how to determine visibility of the slicer visual in javascript embedded

I have a report with two pages and the "sync slicers" feature is enable to allow the slicer on the first page to affect the second page.  On the second page there is an "invisible" slicer that is not visible to users.  (I suppose this is how the sync slicer feature is supposed to work.)

 

Given that BI report, I'm using trying to use it in Power BI embedded.  I'd like to use javascript to auto-navigate to the page where the slicer is visible, and set the slicer state on that page.

 

However, if I enumerate the pages and visuals in the report, I find BOTH instances of the slicer (which is fine) but there appears to be NO WAY to determine which of them is currently visible.  The end result is that I don't have any way to know what page to navigate to. 

 

I'm starting by enumerating all the pages, and for each page I use the "getVisuals" function.

https://microsoft.github.io/PowerBI-JavaScript/classes/_src_page_.page.html 

 

As I inspect each of those visuals, there appears to be no property that would indicate if the slicer in question is visible or not:

https://microsoft.github.io/PowerBI-JavaScript/classes/_src_visualdescriptor_.visualdescriptor.html

 

I may be doing something wrong.  It seems like it should be easier to find the visible instance of the sync'ed slicer. Any tips would be appreciated.

0 REPLIES 0

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.