Forum Discussion

Imagauthamam's avatar
Imagauthamam
Helper III
1 year ago
Solved

Need Help in RANK DAX function (Dynamic Ranking)

I have the following in which I have to do dynamic Ranking. First, it should see the region and then based on Total sales When the region changes, it should start again from 1, (Similar to partitio...
  • Kedar_Pande's avatar
    1 year ago

    Imagauthamam 

    DAX formula:

    Dynamic_Rank = 
    RANKX(
    FILTER(
    'YourTableName',
    'YourTableName'[Region] = EARLIER('YourTableName'[Region])
    ),
    'YourTableName'[Total Sales],
    ,
    DESC,
    Dense
    )


    If this helped, a Kudos ๐Ÿ‘ or Solution mark would be great!
    Cheers,
    Kedar Pande
    www.linkedin.com/in/kedar-pande