Forum Discussion
Configure list slicer in theme
- 10 months ago
Hi tobny76 ,
Thanks for reaching out to Microsoft Fabric Community and thanks for sharing the update.
From what I’ve seen in similar discussions such as this thread: Solved: Re: Unable to change new slicer font colour with c... - Microsoft Fabric Community, the $id: "selection:selected" property works for the new slicer visual (advancedSlicerVisual) when changing the font or background color for selected items.
However, this behavior doesn’t seem to apply in the same way to the listSlicer.
For the classic list slicer, only a few formatting options such as background color and basic text settings appear to take effect through JSON theming, while selection-specific colors may not currently respond.
You can refer to the official documentation on Power BI JSON themes
for the list of supported visual style properties. It might also be worth testing with future Power BI Desktop versions in case expanded support for listSlicer theming becomes available.Hope this helps. Please reach out for further assistance.
Thank you.
Hi tobny76
You’re right , the JSON theme code works for the classic list or dropdown slicer, but not for the new button-style slicer (also called advancedSlicerVisual).
At present, the advanced slicer doesn’t fully support JSON theming, only a few properties (like font or background) may apply, while most style settings must be done manually.
Could you please try below steps:
-
For classic List Slicer:
-
The JSON theme example shared earlier will work.
-
Save it as a .json file >> Power BI View >> Themes >> Browse for themes >> import it.
-
-
For new Button Slicer (advancedSlicerVisual):
-
Format it manually under Format pane >> Buttons >> Style (set background, border, and font).
-
Then save the report as a template (.pbit) to reuse the same style later.
-
Yes, this will work.
But the goal was to do it in the Theme file.
I will close this for now. And hope it will possible to solve it in the Theme file later.