Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
95 | |
90 | |
35 | |
35 |
User | Count |
---|---|
154 | |
102 | |
82 | |
64 | |
54 |