Forum Discussion
prashant21
3 years agoNew Member
Help with RANkX Function
I am trying to write the DAX to get a ranking of stores based on sales. The code provided calculates the rank of stores based on their total weekly deals in the 'sales data-set'. But i am geting the...
- 3 years ago
Hi, Still getting the same issue
mlsx4
3 years agoMemorable Member
Hi prashant21
Try with:
Rank of Stores =
RANKX
(
ALLSELECTED('sales data-set'[Store]), -- Replace 'Stores' with the appropriate table name
[Sum of Weekly Sales],
,DESC
,Dense
)prashant21
3 years agoNew Member
Hi, Still getting the same issue