Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
1 | |
1 | |
1 |