Forum Discussion

SergeyA's avatar
SergeyA
Regular Visitor
1 year ago
Solved

JSON Design for Slicer

Hi, I'm trying to configure a schema for a report in JSON. Everything seems to be working as intended except for one issue — configuring items in the slicer only seems possible at the "items" level. ...
  • v-pnaroju-msft's avatar
    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:

    1. Use your existing JSON to apply the desired formatting globally (for the tile-style slicer).
    2. 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).
    3. 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 Learn

    If 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.