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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
San_eve
Regular Visitor

Help with Rank

I have data simillar to below table. 

 

CategorypairValue
AB10
AC15
BD20
BA25

 

I need a rank column simillar ranking  as per category and value. Below O/p.

CategorypairValueRank
AB101
AC152
BD252
BA201

I have tried Rankx but I am not getting the expected o/p. Any help is appreciated. Thanks.

1 ACCEPTED SOLUTION
DOLEARY85
Super User
Super User

Hi,

 

try this in a calculated column:

 

Column = RANKX(
    FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),
    'Table'[Value],,ASC
)
 
DOLEARY85_0-1687504314987.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

2 REPLIES 2
San_eve
Regular Visitor

Works!!! Thanks a lot.

DOLEARY85
Super User
Super User

Hi,

 

try this in a calculated column:

 

Column = RANKX(
    FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),
    'Table'[Value],,ASC
)
 
DOLEARY85_0-1687504314987.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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