Hi all,
I have sales data in of different agricultural products with sales in SALES AMOUNT, which is as following in the picture.
Zone | State | Depot | District | Crop | Product | Sales Amount |
NZ | HP | Shimla | Shimla | Wheat | Gol | 12 |
CZ | MP | Gwalior | Gwalior | Wheat | Gol | 12 |
SZ | AP | Nellore | Nellore | Chilly | Jwala | 55 |
SZ | AP | Nellore | Nellore | Rice | 5566 | 55 |
SZ | AP | Nellore | Nellore | Rice | 5566 | 55 |
SZ | AP | Warangal | Warangal | Rice | 5566 | 55 |
NZ | HP | Shimla | Shimla | Chilly | Jwala | 10 |
CZ | MP | Gwalior | Gwalior | Wheat | Gol | 10 |
SZ | AP | Nellore | Nellore | Rice | 5566 | 55 |
SZ | AP | Nellore | Nellore | Chilly | Jwala | 55 |
Now when I create Pivot table of the above considering the columns in EXCEL between PRODUCT and SALES AMOUNT, the result is as follows
Year | |||||||||||||||||
Product | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | Grand Total |
Jwala | 10 | 10 | 10 | 30 | |||||||||||||
Gol | 17 | 10 | 10 | 37 | |||||||||||||
7029 | 10 | 10 | |||||||||||||||
5566 | 10 | 10 | 20 | 20 | 55 | 22 | 10 | 10 | 157 | ||||||||
2288 | 10 | 10 | |||||||||||||||
1121 | 10 | 10 | 20 | ||||||||||||||
Grand Total | 27 | 10 | 20 | 30 | 10 | 55 | 22 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 264 |
I wish to know the Product Life cycle, The conditions for the PLC are as follows:
This report will show summation of above data intp three categories Launch, Peak and Post-peak. |
Considering reference year as X, any product sold for the first time in X or X-1 or X-2 will be considered as "Launch product". |
Similarly any product sold for the first time in X-6 or X-5 or X-4 or X-3 will be considered as "Peak Product" |
And, Any product sold for the fist time in X-7 or earlier will be considered as "Post-peak Product" |
The categorization of a product is dynamic in nature and will depend on the year when the report is run |
Now considering the reference year is 2016, I wish to know the sales revenue from each of the "LAUNCH, PEAK, POST Peak" periods in the year 2016,
hence it will be as follows
Products | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 |
1 | 8 | 9 | 10 | 11 | 11 | 10 | 9 | ||||
2 | 0 | 5 | 10 | 11 | 12 | 12 | 11 | 10 | |||
3 | 0 | 5 | 10 | 12 | 13 | 13 | 13 | 12 | 11 | 10 | 10 |
4 | 7 | 8 | 9 | 10 | 10 | 9 | 8 | ||||
5 | 8 | 9 | 10 | 11 | 12 | 11 | 10 | 9 | |||
6 | 8 | 9 | 10 | 11 | 12 | 12 | 11 | 10 | 10 | ||
7 | 13 | 13 | 14 | 14 | 15 | 14 | 13 | 12 | 10 | ||
8 | 14 | 15 | 16 | 16 | 17 | 17 | 16 | 16 | 15 | 15 | |
9 | 16 | 17 | 18 | 18 | 17 | 17 | 16 | 16 | 15 | 15 | 10 |
Total | 74 | 90 | 107 | 114 | 119 | 115 | 107 | 85 | 61 | 40 | 20 |
Launch Product | 0 | 62 | |||||||||
Peak product | 15 | 45 | |||||||||
post Peak Product | 59 | ||||||||||
FOr 2016, Post peak sum is the sum of the products launched in 2009, 08, 07 and 2006. Hence =0+0+8+8+13+14+16= 59 Hence, 59 sales amount is the revenue derived in 2016, for products which are curently in their post peak period |
The above I have done manually in excel. I wish that these calculations to be done by the program in Power BI when I choose the date/ year slicer and consequently make graphs based on the values( 1. Pie chart on Launch, Peak, Post peak, 2. PLC curve to show the products on the curve.)
I dont know how it can be achieved.