I have a data set as the below simple example which is product code sales value for year
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>
It has been sorted to be largest to smallest sales for the second year. I then have a cumulative sales calculation field and the cumulative sales % column also (cumulative sales/total sales).
The cumulative % figure then drives a logic statement to classify the products (important to less important).
I want to also know the same info for year 1 but based on the largest product for year 1 to the smallest product for year 1. Is there a way to do this with rank or some other formula? My only way at present is to copy the dataset then resort it based on year 1 then do the cumulative sum and % calculations. But as I have 5 years sales I'll end up with 5 data sets then which is a bit messy. Any ideas?
Regards
Ed
Yr 1 Sales | Yr 2 Sales | Yr 2 Cum | Cumulative % | |
Prod A | 35 | 50 | 50 | 36% |
Prod B | 55 | 40 | 90 | 64% |
Prod C | 0 | 30 | 120 | 86% |
Prod D | 25 | 20 | 140 | 100% |
Total | 115 | 140 |
<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>
It has been sorted to be largest to smallest sales for the second year. I then have a cumulative sales calculation field and the cumulative sales % column also (cumulative sales/total sales).
The cumulative % figure then drives a logic statement to classify the products (important to less important).
I want to also know the same info for year 1 but based on the largest product for year 1 to the smallest product for year 1. Is there a way to do this with rank or some other formula? My only way at present is to copy the dataset then resort it based on year 1 then do the cumulative sum and % calculations. But as I have 5 years sales I'll end up with 5 data sets then which is a bit messy. Any ideas?
Regards
Ed