Forum Discussion
PowerBI JSON Theme Slicer Default Mode to Dropdown
The issue still exists.
. In general, we always use drop-down slicers so it would make sense for us to set this up in the JSON by default. As a good boy developer, I initialized the JSON in Visual Studio Code and made sure to use the latest $schema. Reading the documentation, I found that I just need to set the data.mode to "Dropdown" and all should be fine. In the screenshot is a bare minimum snippet of code that should just make the slicer a dropdown by default.
However, loading this JSON theme into Power BI changed nothing in the default behavior: The slicer was still showing the data as a list. After studying my code, getting a coffee, staring at my screen some more, and searching the internet again, I finally came to the the post of AllisonKennedy that said: it actually works, but you need to do something before you can see it.
After applying the theme and adding a slicer to your report, look carefully at the settings pane: The 'Reset to default' link is activated! Now for thebig magic trick!: Click it!
Behold! The slicer suddenly decides that actually the JSON told it to be a dropdown, so it should probably transform.
So definately a bug in may 2023 version of Power BI still
Thanks, this helped me a lot—this is still the case in juni of 2026! The "Reset to default"-trick is still working.