I'd like to rank data within groups, by multiple values (in a hierachy), so if Value1 is equal between 2 elements in the same group then rank by column 2, 3, etc
e.g. the data would appear like this where ranking in descending order:
Note, the group sizes may not be the same, and the data may not be ordered by group (I've just done that for ease of reading).
Thanks,
e.g. the data would appear like this where ranking in descending order:
Group | Value1 | Value2 | Rank |
A | 10 | 4 | 3 |
A | 12 | 4 | 1 |
A | 10 | 5 | 2 |
B | 10 | 3 | 3 |
B | 11 | 4 | 2 |
B | 15 | 2 | 1 |
C | 12 | 4 | 2 |
C | 12 | 3 | 3 |
C | 14 | 5 | 1 |
Note, the group sizes may not be the same, and the data may not be ordered by group (I've just done that for ease of reading).
Thanks,