Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a column in my table called "Scores". scores has 4 unique values which are "M", "B", "S", "T"
after selecting the "Scores" column as a slicer, I want to display the display slicer values in the fllowing color format and in the following order.
Can I get any suggestion as to how can that be done?
Solved! Go to Solution.
Hi @rohanazad94 ,
According to your description, here's my solution.
1.Then text type column sorts in alphabetical order by default. If you want it so sort in a custom order, add a custom column in Power Query.
Rank = if [Scores] = "M" then 1 else if [Scores] = "B" then 2 else if [Scores] = "S" then 3 else 4
Then in Desktop, select Scores column, then click Sort by column>Rank.
Result:
2.Conditional formatting is not allowed in slicer by default, you can only use it in other visuals, like table visual.
Color =
SWITCH (
MAX ( 'Table'[Scores] ),
"M", "Green",
"B", "Yellow",
"S", "Purple",
"T", "Red"
)
Select the visual, then in visual formatting pane, under Cell elements, turn on the Backgroud color.
Select the measure in the dialoge.
Result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rohanazad94 ,
According to your description, here's my solution.
1.Then text type column sorts in alphabetical order by default. If you want it so sort in a custom order, add a custom column in Power Query.
Rank = if [Scores] = "M" then 1 else if [Scores] = "B" then 2 else if [Scores] = "S" then 3 else 4
Then in Desktop, select Scores column, then click Sort by column>Rank.
Result:
2.Conditional formatting is not allowed in slicer by default, you can only use it in other visuals, like table visual.
Color =
SWITCH (
MAX ( 'Table'[Scores] ),
"M", "Green",
"B", "Yellow",
"S", "Purple",
"T", "Red"
)
Select the visual, then in visual formatting pane, under Cell elements, turn on the Backgroud color.
Select the measure in the dialoge.
Result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much. The solution you provided worked.
Hey @rohanazad94 ,
I'm unaware of any custom visual that provides the capability you are looking for. The default Slicer visual does not support this capability.
Regards,
Tom
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.