I am stumped by a question on a potential employer's Excel test. The objective is to create a graph showing each particular product's percentage of total month's sales, for a 12 month period. The data set is thousands of lines, each showing sales for each month for a particular product in a specific region (sample below). I started by creating a pivot table of the data set, that totaled sales for each product, by month. This was fairly straightforward. The trouble came when I wanted to create the graph with the trend line showing the percentage of net sales for the month that each product contributed. The instructions were to create one chart with trend lines showing each Product's performance over time, with vertical axis labeled as percentage of total sales, and the horizontal axis showing months (e.g. Month 1, 2, 3…etc). The lines are to be stacked and color coded with a legend identifying each line and the Product it represents. I tried adding a calculated field to the pivot table, but wasn't able to get the percentage of total sales. The original data set is in the format of the example below. Any ideas/help is greatly appreciated. - Thanks.
[TABLE="class: grid, width: 1000, align: left"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Region[/TD]
[TD]Month 1[/TD]
[TD]Month 2[/TD]
[TD]Month 3[/TD]
[TD]Month 4[/TD]
[TD]Month 5[/TD]
[TD]Month 6[/TD]
[TD]Month 7[/TD]
[TD]Month 8[/TD]
[TD]Month 9[/TD]
[TD]Month 10[/TD]
[TD]Month 11[/TD]
[TD]Month 12[/TD]
[/TR]
[TR]
[TD]Prod 1[/TD]
[TD]NE[/TD]
[TD]456[/TD]
[TD]678[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 1[/TD]
[TD]NW[/TD]
[TD]567[/TD]
[TD]453[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 2[/TD]
[TD]NE[/TD]
[TD]77[/TD]
[TD]56[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 2[/TD]
[TD]SE[/TD]
[TD]565[/TD]
[TD]345[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 2[/TD]
[TD]SW[/TD]
[TD]567[/TD]
[TD]356[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 3[/TD]
[TD]NW[/TD]
[TD]567[/TD]
[TD]36[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 3[/TD]
[TD]SW[/TD]
[TD]89[/TD]
[TD]356[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 4[/TD]
[TD]NE[/TD]
[TD]456[/TD]
[TD]34[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 4[/TD]
[TD]MW[/TD]
[TD]67[/TD]
[TD]34[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 1000, align: left"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Region[/TD]
[TD]Month 1[/TD]
[TD]Month 2[/TD]
[TD]Month 3[/TD]
[TD]Month 4[/TD]
[TD]Month 5[/TD]
[TD]Month 6[/TD]
[TD]Month 7[/TD]
[TD]Month 8[/TD]
[TD]Month 9[/TD]
[TD]Month 10[/TD]
[TD]Month 11[/TD]
[TD]Month 12[/TD]
[/TR]
[TR]
[TD]Prod 1[/TD]
[TD]NE[/TD]
[TD]456[/TD]
[TD]678[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 1[/TD]
[TD]NW[/TD]
[TD]567[/TD]
[TD]453[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 2[/TD]
[TD]NE[/TD]
[TD]77[/TD]
[TD]56[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 2[/TD]
[TD]SE[/TD]
[TD]565[/TD]
[TD]345[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 2[/TD]
[TD]SW[/TD]
[TD]567[/TD]
[TD]356[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 3[/TD]
[TD]NW[/TD]
[TD]567[/TD]
[TD]36[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 3[/TD]
[TD]SW[/TD]
[TD]89[/TD]
[TD]356[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 4[/TD]
[TD]NE[/TD]
[TD]456[/TD]
[TD]34[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Prod 4[/TD]
[TD]MW[/TD]
[TD]67[/TD]
[TD]34[/TD]
[TD]etc..[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]