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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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