Hi all,
I have ~50 fields of different performance metrics, and my goal is to rank them all by quintiles. I've generated additional columns for the rank within each field. Is there a simple way to generate the next set of 50 columns which would translate the rank into which quintile each row falls into?
So from this
| ID | field 1_rank | field 2_rank | and so on | field 50_rank |
| 1 | 801 | 1 | ... | 300 |
| ... | ... | ... | ... | .. |
| 1000 | 500 | 500 | ... | 500 |
How do I get to this?
| ID | field 1_quintile | field 2_quintile | and so on | field 50_quintile |
| 1 | 5 | 1 | ... | 2 |
| ... | ... | ... | ... | .. |
| 1000 | 3 | 3 | ...3 | |
Frustrating wrinkle is that not every row has a rank so the total rank number for each column is different. EG field one might only have ranks 1-10 and field 50 might have ranks 1-1000, so the total used to calculate the quintile needs to be dynamic.
Have tried summarize and append to get the dyanmic total in order to calculate quintile, but how do you repeat this for 50 different columns without writing the formula every time?