Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Good day,
Is there a method of ranking top 3 percentage by color Gold, Silver, Bronze?
Solved! Go to Solution.
Hi,
Thank you for your feedback.
I tried to create a sample pbix file like below.
Please try the below.
Please check the attached pbix file as well.
Color measure: =
VAR _ranking =
RANKX (
ALL ( Data ),
[Performance measure:],
,
DESC
)
RETURN
SWITCH (
TRUE (),
_ranking = 1, "Gold",
_ranking = 2, "Silver",
_ranking = 3, "Yellow"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Could you please write a measure something like below, and put it into the visualization?
Color measure: =
VAR _ranking =
RANKX (
ALL ( 'TableName'[Badge number], 'TableName'[Operator Name] ),
[Performance],
,
DSC
)
RETURN
SWITCH (
TRUE (),
_ranking = 1, "Gold",
_ranking = 2, "Silver",
_ranking = 3, "Bronze"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
I feel like something is missing from the true () statement?
I am not sure but all cells are gold.
Hi,
Thank you for your feedback.
I tried to create a sample pbix file like below.
Please try the below.
Please check the attached pbix file as well.
Color measure: =
VAR _ranking =
RANKX (
ALL ( Data ),
[Performance measure:],
,
DESC
)
RETURN
SWITCH (
TRUE (),
_ranking = 1, "Gold",
_ranking = 2, "Silver",
_ranking = 3, "Yellow"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.