Hi,
I have a situation where I'm trying to convert the sales units at a store/sku level to a percentage of the sales at the highest selling store and then for every 17% attribute an A through F grade.
I'm just wondering how I would go about doing this?
The ranking would look something like below:
Percent Rank Range | |
Upper Limit | Lower Limit | Store Category |
100.0% | 83.9% | A |
83.8% | 67.4% | B |
67.3% | 50.8% | C |
50.7% | 34.2% | D |
34.1% | 17.1% | E |
17.0% | 0.0% | F |
And the data that I'm using would be setup like below and I would be wanting to calculate the final two columns.
| Store | SKU | Sales | Percentage of Total Sales | Rank |
| 1043 | 1001 | 4 | 100% | A |
| 1044 | 1001 | 3 | 75% | B |
| 1045 | 1001 | 2 | 50% | D |
| 1043 | 1002 | 4 | 100% | A |
| 1044 | 1002 | 3 | 75% | B |
| 1045 | 1002 | 2 | 50% | D |
Thanks,
Justin