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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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/
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.