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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
EduardD
Helper III
Helper III

Embed for your customers scenario (auth by app). How to emulate persistent filters ?

Persistent filters is a great feature that can be used in Embed for your organizaiton scenario. It stores user filters, bookmarks, sorting order, etc. applied between sessions. 

I am looking for guidance on how to emulate persistent filters ( for the 'Embed for your customers' scenario, where the app is responsible for authenticating users.
Is it technically possible? 
Thank you in advance. 

4 REPLIES 4
SaiTejaTalasila
Super User
Super User

Hi @EduardD ,

 

You can refer this article -https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/enable-persistent-filters

 

I hope it will be helpful.

 

Thanks,

Sai Teja 

rohit1991
Super User
Super User

Yes, it is technically possible to emulate persistent filters in the "Embed for your customers" scenario. Since the app handles user authentication, you can implement a backend service to store user-specific filter settings, bookmarks, and other preferences.

Here’s how:

  1. Capture Filters: Use the Power BI JavaScript API to capture the applied filters and states when the user interacts with the report.
  2. Save Settings: Store these settings in your database, mapped to the authenticated user's ID.
  3. Apply Filters: Retrieve and apply the saved settings during subsequent report loads using the JavaScript API.

This approach effectively mimics persistent filters for embedded scenarios.

@rohit1991  Can we use bookmarks instead? so every 5 minutes bookmark the state of page user is on and save it to the database? also create bookmark when user is exiting page?
Then apply bookmarks when user navigates to specific page?

Can we track through using JavaScript API when user is navigating between pages to apply the rigth bookmark from database?

@rohit1991 thank you. 
We predominately use slicers in the dashboard not filters, I have 10 pages in the report. 
if you know, how should the solution to be designed: javascript code to visit [for each user openned the report] all 10 pages slicers every 5 min to collect the slicers' states and save it to the database? So when user opens next time all that slicers to apply to all the pages during report openning? Can we catch in the code what page is open in the UI for specific user to save only those slicers states?

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.