Showing results for 
Search instead for 
Did you mean: 
dbeavon3 Frequent Visitor
Frequent Visitor

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. 


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:


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.

Helpful resources

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 148 members 1,686 guests
Please welcome our newest community members: