Forum Discussion
Imagauthamam
1 year agoHelper III
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...
- 1 year ago
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
Kedar_Pande
1 year agoSuper User
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