I am trying to create a query which will rank each sku for each supplier by sales.
Once ranked then I want to be able to assign a percentile of 0.2 for the top 20% of skus for a given supplier, then 0.4 for the next 20% of skus for a given supplier and so on.
I've attached a screen shot of the table and desired query result. Note: screen shot is in excel for ease.
Any help would be much appreciated
Wini
Once ranked then I want to be able to assign a percentile of 0.2 for the top 20% of skus for a given supplier, then 0.4 for the next 20% of skus for a given supplier and so on.
I've attached a screen shot of the table and desired query result. Note: screen shot is in excel for ease.
Any help would be much appreciated
Wini