Forum Discussion
ibuhary
Helper I
7 years agoRANKX
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
Solution Supplier
7 years agoWhy 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 ago
Helper I
In that case the ranks returned are all 1 for all the stores