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

Show ranking based on text

Hi.

 

How do I show a ranking(1-10) of this column? I have already made a TopN but I would like to see the ranking number next to it. 

lavmads_0-1667377222317.png

Best regards,

Lisa

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could try this calculated column.

Ranking = RANKX('Table',[Text],,ASC,Dense)

vstephenmsft_0-1667899907743.png

You can download my attachment for more details.

However, I guess you only want an index column, right? Please refer to

Add an index column - Power Query | Microsoft Learn

 

 

 

Best Regards,

Stephen Tao

 

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

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could try this calculated column.

Ranking = RANKX('Table',[Text],,ASC,Dense)

vstephenmsft_0-1667899907743.png

You can download my attachment for more details.

However, I guess you only want an index column, right? Please refer to

Add an index column - Power Query | Microsoft Learn

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HoangHugo
Solution Specialist
Solution Specialist

Hi,

rank =RANKX([table name],[*Material],,1,Dense)

Anonymous
Not applicable

@HoangHugo 
Am I doing it wrong? It gives me an error. 

lavmads_0-1667385809314.png

 

Hi, refer to a table, we use apostrophe '

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.