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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lawrenceabith
Helper IV
Helper IV

How I change in the slicer the color of selected button?

Dear all,

 

How I change in the slicer the color of selected button? 

We need to change this color for blank because our backgound is black. We need to do this in the Multi-select and single select option of Power BI slicer. How we do this?

lawrenceabith_2-1643117469432.png

Many thanks,

 

2 ACCEPTED SOLUTIONS
v-henryk-mstf
Community Support
Community Support

Hi @lawrenceabith ,

 

According to your description, it can't be changed by the normal slicers. I think you can try to change it using Chiclet Slicer, these slicers consist of buttons arranged horizontally to be used efficiently. The reference is as follows:

 

vhenrykmstf_0-1643707466530.png

vhenrykmstf_1-1643707488513.png


This blog will provide you with more help.
Power BI Custom Visuals - Chiclet Slicer (pragmaticworks.com)


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Jolien
Advocate I
Advocate I

Just found out this is possible with the "Slicer (new)" visual.

Jolien_1-1702028231675.png

 

Jolien_0-1702028195668.png

 

View solution in original post

12 REPLIES 12
zackwjames
Regular Visitor

Hello could someone share the json code that changes the slicer colour?
Id prefer this solution to using the slicer new

Thanks!

MyroslavaM
Advocate II
Advocate II

You can actually adjust the color of selected item for Slicer by editing the theme or better to configure the theme by yourself. Adding screen shots.
Picture (6).pngPicture.png

Jolien
Advocate I
Advocate I

Just found out this is possible with the "Slicer (new)" visual.

Jolien_1-1702028231675.png

 

Jolien_0-1702028195668.png

 

Excellent @Jolien! Thanks a lot!

Anth_NC_QN
Frequent Visitor

hi!

Any news on how to change selection boxes in another colour ?

v-henryk-mstf
Community Support
Community Support

Hi @lawrenceabith ,

 

According to your description, it can't be changed by the normal slicers. I think you can try to change it using Chiclet Slicer, these slicers consist of buttons arranged horizontally to be used efficiently. The reference is as follows:

 

vhenrykmstf_0-1643707466530.png

vhenrykmstf_1-1643707488513.png


This blog will provide you with more help.
Power BI Custom Visuals - Chiclet Slicer (pragmaticworks.com)


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks!!! Chiclet slicer is great!!

lawrenceabith
Helper IV
Helper IV

Hi @amitchandak,

I didn't get very far. What would be the option to change? Do you have the json documentation?

 
Thanks,
amitchandak
Super User
Super User

@lawrenceabith , I do not see any option for that in items(used to change item color of slicer), But I see it does respond to the theme, no specific option for slicer there.

 

You can play around with json. I see this option there

"slicer":{"*":{"items":[{"background":{"solid":{"color":"#3a3a3a"}}}],"numericInputStyle":[{"background":{"solid":{"color":"#3a3a3a"}}}]}}

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak,

 

We will try. 

 

Thanks a lot!!

Hi,

Did you succeed? Can you share the solution?

Thanks!

You can do it (change the color of selected value in slicer), by editing the theme colors.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.