Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello good peoples,
I'm facing an issue where I can't read the slicer state of inactive pages in an embedded Power BI report.
Here's my use case:
Unfortunately, it seems the slicer state of inactive report pages cannot be accessed directly.
Does anyone have a workaround or solution to solve this issue? Any guidance or suggestions would be greatly appreciated.
Thank you!
Solved! Go to Solution.
Hi @Mestu_Paul - Unfortunately, the dataSelected event doesn't trigger for range slicers. This is a limitation of the Power BI API. Since the API does not directly support range slicer event tracking, you can periodically check the state of the slicer using the getFilters() method.
you can integrate these ideas into your workflow as below:
1.Use getFilters() for range slicers and hierarchy slicers.
2.Store these states in a centralized object.
3.Track page changes:
4.Use the pageChanged event to capture slicer states before navigation.
5.Update paginated report parameters:
6.Pass the stored slicer states as parameters to the paginated report API.
If these approaches still don’t meet your needs, consider submitting feedback to Microsoft or raising a support ticket.
Get Help + Support in Power Platform - Power Platform | Microsoft Learn
Proud to be a Super User! | |
Use the sync slicers functionality to add the slicers to all pages of the report, but make them invisible on the pages where you don't actually want to see them.
Hi @Mestu_Paul -Power BI typically doesn’t load the visual or filter context of inactive pages until they are activated.
you can try with synced slicers across pages if applicable.Optimal Solution: Design a centralized Master Page for slicers or use the Power BI JavaScript API to navigate inactive pages dynamically.
or use the Power BI REST API for exporting filtered data or visuals.
Proud to be a Super User! | |
Thanks for your suggestions!
I also tried utilizing the embedded events.
Hi @Mestu_Paul - Unfortunately, the dataSelected event doesn't trigger for range slicers. This is a limitation of the Power BI API. Since the API does not directly support range slicer event tracking, you can periodically check the state of the slicer using the getFilters() method.
you can integrate these ideas into your workflow as below:
1.Use getFilters() for range slicers and hierarchy slicers.
2.Store these states in a centralized object.
3.Track page changes:
4.Use the pageChanged event to capture slicer states before navigation.
5.Update paginated report parameters:
6.Pass the stored slicer states as parameters to the paginated report API.
If these approaches still don’t meet your needs, consider submitting feedback to Microsoft or raising a support ticket.
Get Help + Support in Power Platform - Power Platform | Microsoft Learn
Proud to be a Super User! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |