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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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