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
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
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.