Forum Discussion
JSON Design for Slicer
- 1 year ago
Thankyou, burakkaragoz and MFelix, for your response.
Hi SergeyA,We appreciate your inquiry on the Microsoft Fabric Community Forum.
Based on my understanding, you are attempting to apply JSON-based styling exclusively to the tile-style slicer, while keeping the dropdown and list-style slicers with a white background and dark text. However, the formatting from your JSON is currently being applied to all slicers.
At present, Power BI's JSON theming does not support individual formatting of slicers based on their layout (tile, list, or dropdown). Styling defined under the "slicer" category applies globally to all slicers.
Kindly follow the approach mentioned below, which may help resolve the issue:
- Use your existing JSON to apply the desired formatting globally (for the tile-style slicer).
- Manually override the dropdown and list slicers by using the Format pane. Set the background color to white (#FFFFFF) and the font color to dark (#000000).
- This method will enable you to maintain visual distinction while preserving theme consistency.
Additionally, please refer to the following link:
Use report themes in Power BI Desktop - Power BI | Microsoft LearnIf you find our response helpful, we kindly request you to mark it as the accepted solution and provide kudos. This will help other community members facing similar queries.
Should you have any further questions, please feel free to reach out to the Microsoft Fabric community.
Thank you.
Hi SergeyA ,
You are using a theme JSON file, and that theme is applied has a stadard value for the visualizations so when you select a slicer it will pickup the default setting you define on the JSON, you cannot make a IF condition on the JSON to get the values based on any condition, for those specific visuals you need to change the settings for each one.
What I can suggest is that you create for example a Power BI Template that will allow you to do the settings for specific visual and when reconnecting to a data it will pickup those specific changes has soon has you had the data.