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

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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