Forum Discussion
Remove Duplicate Ranking
Dear All,
I want unique ranking for all records having same values in column.
As shown in below image, 2 users having same amount so ranking is same 8, 8 for both but I want 8 and then 9 for other user.
How can I do it. Kindly help me.
- Anonymous6 years ago
HI Anonymous ,
The last 2 Sales Person have the same amount of Sales and that is why it is showingin the TOP 10 employees by Sales.
Incase you want to show 10 employees, you will need to break the ranks ( but this will not give a clear picture to the person whom you are sharing this dashboard) as both Rajesh and Rishant has 97 units of Sales.
Anyways incase you want to break ties.
Create a new measure
Randome = RAND()Add [Randome] to Rank MeasureRank Employee =var a = RANKX(ALL(Sheet1[RetailerName]),[Quantity Sold per Employee]) + [Randome]RETURNaRegards,
Harsh NathaniDid I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
15 Replies
- AnonymousNot applicable
Hi Anonymous ,
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
This article explains how you can create unique ranks.
Regards,
Harsh Nathani
- Pragati11Super User
Hi Anonymous ,
Just check my blog on handling duplicate rankings here:
This should help you.
Thanks,
Pragati
- amitchandakSuper User
Anonymous , refer this to break tie
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/
https://forum.enterprisedna.co/t/rank-unique-ranking-when-there-are-duplicate-values/2815
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415 - v-diye-msftCommunity Support
Hi Anonymous
If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly. If not, please kindly elaborate more. thanks!
- AnonymousNot applicable
Thank you all for your help and sorry for delayed responce. but still my issue is not resolved....
not able to get top 10 retailers . Below issue is coming -
or please help me with some other expression
- AnonymousNot applicable
Hi Anonymous ,
Are you creating Calculated Column or a measure?
And the above formula , is to rank between a group I.e Categories and Subcategories.
Can you pls share some sample Data in text format and expected output.
And also pls specify measures or Calculated Columns.
Regards,
HN