Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
niteshtrehan89
Helper III
Helper III

Rank withour skipping numbers

Hi All,

 

I am facing one problem and need a resolution for the same.

I have created a Rank calculated column

Rank= rankx(all(employee),sum(value),,,dense)

 

I needs the ranks as per the expected rank column. Can you please help me on this on proirity

 

EmployeeValueRankExpected Rank
E120011
E220012
E320013
E420014
E510025
E610026
E75037
E82048
E92049
E1010510
1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

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:

 

v-henryk-mstf_0-1610605442599.png

v-henryk-mstf_1-1610605450186.png

v-henryk-mstf_2-1610605468591.png

v-henryk-mstf_3-1610605480551.png

v-henryk-mstf_4-1610605492043.jpeg

v-henryk-mstf_5-1610605500314.jpeg


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.

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

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:

 

v-henryk-mstf_0-1610605442599.png

v-henryk-mstf_1-1610605450186.png

v-henryk-mstf_2-1610605468591.png

v-henryk-mstf_3-1610605480551.png

v-henryk-mstf_4-1610605492043.jpeg

v-henryk-mstf_5-1610605500314.jpeg


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.

amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.