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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.