Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
100 | |
74 | |
63 | |
62 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
66 |