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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Getting the RANK for Top N without duplicates

Hello everyone,

I have a Table visualization below.

SanojMohanan_1-1665671962068.png

 

I need a help to create the Rank in order for the STP % even if the STP is same [for eg; the very first few records showing 100% and would like to have Rank as 1 and 2 and go on].

Thanks in advance.

 

1 ACCEPTED SOLUTION

Hi,

While i have been able to get different rank values, the numbers/order is not correct.  This may serve as a starting point for you.  You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

I can try to help.  Share the download link of your PBI file. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashih, 

Here is the download link.

https://1drv.ms/u/s!Ag3NrywK0UV9dqNx5Nyzkke8B-U?e=A1Qoiz

Hi,

While i have been able to get different rank values, the numbers/order is not correct.  This may serve as a starting point for you.  You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous,

Perhaps you can add a category field to the expression to ranking based on multiple columns, they should help reduce the duplicate rankings: (these rankings will be based on the category and values)

RANKX on multiple columns with DAX and Power BI - SQLBI

You can also refer to the following link about rankx function if helps:

Introducing RANKX in DAX - SQLBI

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.