Forum Discussion
Question about labels
- 2 years ago
Anonymous Ah, got it. Yes, you can use a measure for the Value field for data labels so you should be able to code this to whatever you want. You will need to do a ranking of ALL the supervisors and then determine if the current context supervisor is the top 1 (or whatever your logic) and you could return a UNICHAR of a star for example for the top on.
Greg_Deckler , thanks for the reply.
Let me try to explain. Power BI has recently introduced a new feature called "Custom Label." I am exploring the possibility of utilizing this function to generate a custom label that displays the rank of each supervisor. Specifically, I am interested in understanding the feasibility of creating a measure that calculates the rank based on the performance of the supervisor.
So when I filter the months or date I could see who was the top-ranked supervisor based on their performance, not solely on production metrics.
Anonymous Ah, got it. Yes, you can use a measure for the Value field for data labels so you should be able to code this to whatever you want. You will need to do a ranking of ALL the supervisors and then determine if the current context supervisor is the top 1 (or whatever your logic) and you could return a UNICHAR of a star for example for the top on.
- Anonymous2 years agoNot applicable
Greg_Deckler , thank you very much!
This measure
RANKX(
ALL(producao[supervisor]),
[performance],,DESC,Dense
)
did the job. - Anonymous2 years agoNot applicable
Now the only problem is this
Instead of displaying the ⭐ it simply shows the code (I'm using the Power BI Report Service in PBI Desktop works just fine).