Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I'm trying to set dynamically filters from JS using Power BI SDK.
When I check on Power BI service the filters to "select all"
then in my JS code get filters as bellow
rapport.getFilters().then(data => {
console.log("filters data", data)
I'm getting an empty array :
Secondly when I try to set filter using setFilters API nothing happens
report.setFilters(filters)
Here's what I send in 'filters'
My code works only in one case:
When I go to power bi service and uncheck selectAll then check one by one the filters.
In this case , when I setfilter the embedded view is getting updated. But in my case I'm generating reports automatically so I get go to pbi online and check every filter, I should keep default "select all" checked and set filter from front end.
any solution to set filters programmatically with default checked "selected all " ?
Hi @ITInge ,
It seems that currently there is no property to achieve it, please review the content in the following thread:
All possible report filter values in javascript api
Best Regards