cancel
Showing results for 
Search instead for 
Did you mean: 

setFilters/updateFilters using JS SDK hides all but 1st filter from filters panel

setFilters/updateFilters using JS SDK hides all but 1st filter from filters panel. However getFilters still returns all filters.

 

Collapsing and then expanding filters panel manually un-hides disappeared filters.

 

I have tried different environments, tried reverting project's code to few montsh in the past as well as downgrading/updating JS SDK - setting/updating filters acts the same as described above. 

 

So my guess it's either something on MS side or there is some misconfiguration at my side.

 

Related topics:

 

https://community.powerbi.com/t5/Issues/PowerBI-Embedded-Filterpane-Bug/idc-p/2001755

https://stackoverflow.com/questions/68623939/powerbi-js-sdk-setfilters-removes-all-but-1st-filter-fr...

https://community.powerbi.com/t5/Issues/Published-report-filters-are-lost-when-setFilters-is-called/...

Status: New
Comments
v-chuncz-msft
Community Support

@fuji 

 

You may try report.updateSettings to switch panes property.

fuji
Regular Visitor

@v-chuncz-msft yes, this is our workaround to toggle filter panel after setting filters, thank you for the suggestion.

However it's still a non-elegant-jumpy-workaround of what previously was working prefectly fine.

v-chuncz-msft
Community Support

@fuji 

 

A similar issue has been reported internally, so stay tuned.

https://community.powerbi.com/t5/Issues/PowerBI-Embedded-Filterpane-Bug/idc-p/2001755