microsoft / powerbi-visuals-api

Power BI custom visuals API
MIT License
86 stars 46 forks source link

Visual update event does not support the new 'Clear all slicers' button #76

Open adamposledni opened 1 year ago

adamposledni commented 1 year ago

If the new Clear all slicers button is selected on the report page the custom visual update event is triggered. However the instance of VisualUpdateOptions still keeps filters applied by the custom visual. Becaus of this it is not possible to support the Clear all slicers button for custom slicers. So it seems that it only resets the native slicers.

This is what the instance of VisualUpdateOptions looks like after the Clear all slicers button is selected:

image

nivalt commented 3 weeks ago

We are planning to fix it in the following iterations. I guess your CV managing filter through user selections, I recommend you implement the selectionManager as in the following docs: https://learn.microsoft.com/en-us/power-bi/developer/visuals/selection-api.