Forum Discussion

twintrbl's avatar
twintrbl
Advocate I
7 years ago
Solved

Rank 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...
  • jdbuchanan71's avatar
    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] ) )
    )