Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
112 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |