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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.