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
ssuttoplunz
New Member

JS API: Apply multiple slicers on a report with one button

Hello! 

- I am currently trying to only apply multiple different filters or slicers on a report after a button is clicked (for context, this is to minimize queries to a database when the data is large and while using DirectQuery).

- I know there are capabilities to have each individual filter/slicer have its own "apply" button, but was wondering if this was possible if I wanted to wait to submit all of them at once in the same query.

- If there is no out of the box solution, I was hoping to use the "buttonClicked" event in the JS API https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events but have had issues actually capturing the button click (it didn't appear to be propagating as expected), along with getFilters, or setFilters https://github.com/microsoft/PowerBI-JavaScript/wiki/Filters to accomplish this.

 

Does anyone know of any solutions, or have any helpful tips?

0 REPLIES 0

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.