Forum Discussion
ibuhary
7 years agoHelper I
RANKX
Hello there, I have a table with Store ID, Store Name and Sales. I have created a measure to Rank the Store Names based on highest sales. StoreRank = RANKX(ALLSELECTED( 'Table'[Store Name])...
- 7 years ago
Not in my test data. See pic below
sokg
7 years agoSolution Supplier
Why do you use ALLSELECTED instead of ALL???
Why do you use 'Table'[Store Name] instead of just 'Table'???
so try this
StoreRank = RANKX ( ALL ( Table ), CALCULATE ( SUM ( 'Table'[Sales] ) ),, DESC )
- ibuhary7 years agoHelper I
In that case the ranks returned are all 1 for all the stores