Forum Discussion
FreedaM
4 years agoNew Member
Set Slicer selection to "All" via setSlicerState API method
I am trying to set the state of a slicer to "All" via the setSlicerStateAPI method. I've tried different options including filters: [{ "$schema": "http://powerbi.com/product/schema#basic", "target...
- 4 years ago
Hi FreedaM,
I think it looks like you're using Power BI Embedded? In custom visuals, we just need to pass a null filter to clear it. I believe Embedded and Visuals share the same JSON API for filters. Just wondered if you've tried that?
Regards,
Daniel
dm-p
4 years agoSuper User
Hi FreedaM,
I think it looks like you're using Power BI Embedded? In custom visuals, we just need to pass a null filter to clear it. I believe Embedded and Visuals share the same JSON API for filters. Just wondered if you've tried that?
Regards,
Daniel
- FreedaM4 years agoNew Member
Hi Daniel,
Yes, you are correct that we are using Power BI Embedded.
That worked. Thank you so much!
Best regards,
Freeda