Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
tobny76
Helper II
Helper II

Configure list slicer in theme

Hi!
I hope I have an easy question.
I don't get the theme file to work with the ListSlicer.
Can anyone share an example of how I for example modify the colors for it so I know how to start.

tobny76_0-1761569582661.png

 

15 REPLIES 15
v-veshwara-msft
Community Support
Community Support

Hi @tobny76 ,

Just checking in to see if you query is resolved and if any responses were helpful.
Otherwise, feel free to reach out for further assistance.

Thank you.

Hi,
No I have not found the solution for changing the ListSlicer yet.
If I for example try to modify the settings for the title color on both
"Slicer" and "advancedSlicerVisual" it will not affect the ListSlicer.



tobny76_0-1762860232446.png

 

Text is working with the "Value" property. Now I only need to figure out the SelectionIcon.

Hi @tobny76 ,

Thanks for confirming that the title and value text properties are working with listSlicer.

As for the SelectionIcon, there is currently no documented JSON property to modify its color or style for the list slicer visual. The $id patterns that apply to advancedSlicerVisual don’t appear to have the same effect here.

You may try experimenting within the listSlicer scope, but based on available information, the SelectionIcon formatting is likely not theme-controllable yet.

 

You can consider sharing this as a feature request in the Power BI Ideas
forum so that the product team can review adding support for it in future updates.

 

Please reach out for further assistance.

Thank you.

Title is working to change with "listSlicer".

 

parry2k
Super User
Super User

@tobny76 although others have given great solution, wondering if you had chance to look at these theme generator sites:

 

themes.pbix - PowerBI Theme Generator by POINT. Consulting GmbH

Power BI Theme Generator



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

tobny76
Helper II
Helper II

mickey64
Super User
Super User

You can change the button color and background color of the slicer.

 

mickey64_0-1761577897996.png

 

mickey64_1-1761577955303.png

 

mickey64_2-1761578019121.png

 

For your reference.

I would like to do handle my settings for the "List Slicer" in the theme file.

rohit1991
Super User
Super User

Hi @tobny76 

 

You can customize your List Slicer colors through a Power BI JSON theme file.

Here’s a quick example:

{
  "visualStyles": {
    "slicer": {
      "*": {
        "selection": [
          { "fontColor": { "solid": { "color": "#FFFFFF" } } },
          { "background": { "solid": { "color": "#0078D4" } } }
        ],
        "unselected": [
          { "fontColor": { "solid": { "color": "#333333" } } },
          { "background": { "solid": { "color": "#F2F2F2" } } }
        ]
      }
    }
  }
}

Could you please try below steps:

  1. Save this as a .json file.

  2. In Power BI >> View >>Themes >> Browse for themes, import the file.

This will apply your custom background and text colors to the list slicer automatically.

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Now I have at least solved the background, I changed "slicer" to "listSlicer".
But I don't get the fontcolor and background for selection/unselected to work.

{
  "name": "Custom List Slicer Theme",
  "visualStyles": {
    "listSlicer": {
      "*": {
        "background": [{
            "show": true,
            "color": {
              "solid": {
                "color": "#00FF00"
              }
            },
            "transparency": 0
          }
        ]        
      }
    } 
  }
}

 

tobny76_0-1761599281994.png

 

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 ,
Just wanted to check if the response provided was helpful. If further assistance is needed, please reach out.
Thank you.

I have tried to use almost the same as you suggested,
I tried your code as well but I don't get it to work with the "List Slicer".
For the new buttonslicer I get it to work with "advancedSlicerVisual".


 

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:

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

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


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors