Forum Discussion

San_eve's avatar
San_eve
Regular Visitor
3 years ago
Solved

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.

  • Hi,

     

    try this in a calculated column:

     

    Column = RANKX(
        FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),
        'Table'[Value],,ASC
    )
     

     

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

2 Replies

  • DOLEARY85's avatar
    DOLEARY85
    Resident Rockstar

    Hi,

     

    try this in a calculated column:

     

    Column = RANKX(
        FILTER('Table','Table'[Category] = EARLIER('Table'[Category])),
        'Table'[Value],,ASC
    )
     

     

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