Forum Discussion
Rank withour skipping numbers
- 5 years ago
Hi niteshtrehan89 ,
According to your description, using the RANKX function on the desktop may not be achieve such a ranking. You can try to operate in Power Query, I did the following test, first sort the columns, according to the sorted table, create an index as the Expected_Rank column.You can refer to the screenshot below:
If the problem is still not resolved, please provide detailed error information and let me know immediately, looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
niteshtrehan89 , You need use Rank tie breaker
Rank Tie breaker
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-Columns/ba-p/918655
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/
Typically done by additing a random number while creating a rank