Forum Discussion
twintrbl
Advocate I
7 years agoRank with two categories
I'm trying to rank our Vendors by their average survey scores, but I need it ranked not just by the Vendor, but by the Vendor and the State. Over-simplified example: I have tried all ki...
- 7 years ago
Hello twintrbl
You can feed more than one column into your ALL statement which will give you the combined list to rank over. Give this a try.
Ranking = RANKX ( ALL ( 'Dispatch'[Vendor], 'Dispatch'[State] ), CALCULATE ( AVERAGE ( Survey[Rating] ) ) )
jdbuchanan71
Super User
7 years agoHello twintrbl
You can feed more than one column into your ALL statement which will give you the combined list to rank over. Give this a try.
Ranking =
RANKX (
ALL ( 'Dispatch'[Vendor], 'Dispatch'[State] ),
CALCULATE ( AVERAGE ( Survey[Rating] ) )
)twintrbl
Advocate I
7 years agojdbuchanan71 Thank you! That worked! I knew it had to be something simple. I just never saw any examples with two columns in the ALL statement. Thank you for taking the time to reply!