Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

seerauber

New Member
Joined
Aug 7, 2015
Messages
9
Hi all,

I am relatively confident an answer for my question already exists, but my googlefu/excel vocabulary has proven too weak to find it. I apologize!

I am working on pulling in sales data and creating a chart. I have about 200 SKUs, and Prior Year sales data (by month), YTD sales (by month) and forecasted sales (by month) - ultimately there are additional pieces of data I'd like to pull in like conversion, traffic, ad spend, etc.

What I need to do is create a pivot table/chart that will allow me to select a product and see the performance across all the relevant measures.

Pretty basic stuff, except I can't figure out how to format my data to do this without separating each SKU and its sales data into its own table/tab. If I've explained this intelligibly, could anyone point me in a website or how-to that will help me?

Thank you!!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

Really need to see some sample data to help you sort this out. Suggest you post a little bit of data you currently have and then what you expect it to look like. Then we can offer up some viable solution. Your current explanation is a bit vague.
 
Upvote 0
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

Really need to see some sample data to help you sort this out. Suggest you post a little bit of data you currently have and then what you expect it to look like. Then we can offer up some viable solution. Your current explanation is a bit vague.


Apologies and thank you for the help. I've included sample data with an image. You can see the columns of data, and the chart. Ideally I'd like to have a single pivot chart that I can select one or more product do display, with slicers to select which data gets charted.


I have many of these individual sheets, but what I would like to be able to do going forward is combine the data for each product onto a single worksheet, and have the pivot table/chart use that single sheet as the data source. I can send an example of the raw data if necessary, though I'll have to take the time to try and anonymize it.

Is this more understandable? I feel sure that what I want is doable, I just lack the vocabulary to find the solution.

Thanks to you for your time and help!!


dbgop4.png


DateAD Sessions AMS Spend AMS Revenue Total RevenueUnits Rev-AMS ASPRev +/- Ad ShareAd Units Ad ConversionsTotal Sessions Total Conversion
26-Jan235 $ 472.46 $ 1,044.14$1,492.6162 $ 448.47 $ 24.07-70.0%4318.5%27524.1%
2-Feb148 $ 305.72 $ 491.60$894.0037 $ 402.40 $ 24.16-40.1%55.0%2013.7%29525.4%
9-Feb226 $ 430.08 $ 877.28$2,180.7392 $ 1,303.45 $ 23.70143.9%40.2%3716.4%29524.3%
16-Feb188 $ 310.54 $ 479.60$994.0941 $ 514.49 $ 24.25-54.4%48.2%2010.5%31526.7%
23-Feb152 $ 274.15 $ 801.32$1,157.7349 $ 356.41 $ 23.6316.5%69.2%3422.3%32529.5%
2-Mar159 $ 341.49 $ 747.38$1,047.6143 $ 300.23 $ 24.36-9.5%71.3%3119.3%33727.6%
9-Mar183 $ 418.86 $ 647.44$1,036.5043 $ 389.06 $ 24.10-1.1%62.5%2714.7%34929.8%
16-Mar155 $ 352.07 $ 917.24$986.9941 $ 69.75 $ 24.07-4.8%92.9%3824.6%36130.2%
23-Mar173 $ 437.68 $ 1,019.16$1,305.3254 $ 286.16 $ 24.1732.3%78.1%4224.4%37329.5%
30-Mar208 $ 484.98 $ 1,072.12$1,707.6671 $ 635.54 $ 24.0530.8%62.8%4521.4%38530.9%
6-Apr377 $ 747.37 $ 1,357.88$2,291.6895 $ 933.80 $ 24.1234.2%59.3%5614.9%39731.2%
13-Apr353 $ 629.99 $ 1,565.68$3,086.60128 $ 1,520.92 $ 24.1134.7%50.7%6518.4%40932.1%
20-Apr431 $ 902.00 $ 2,186.00 $ 4,054.00168 $ 1,868.00 $ 24.1331.3%53.9%9121.0%42128.9%
27-Apr488 $ 1,052.00 $ 2,006.00 $ 3,884.00161 $ 1,878.00 $ 24.12-4.2%51.6%8317.0%43333.3%
4-May987 $ 2,541.00 $ 4,373.00 $ 5,288.00218 $ 915.00 $ 24.2636.1%82.7%18018.3%44533.8%

<tbody>
</tbody>
 
Upvote 0
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

Your sample data has a few challenges:
- The row date is by week and you want to report monthly, any thoughts on how to split a week between months correctly
- Don't see a product to select
Suggestions:
- Pivot the data then use slice & dice to add product selection and any other filter criteria desired (it has to be in the raw data though)
- In pivot recalculate percentages based on raw data - using percentages to calculate percentages is a good way to cause problems
- You can add 'helper' columns in the raw data to delineate the year/month however you want, or utilize Pivot's calculated field to create what you need.
 
Upvote 0
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

Your sample data has a few challenges:
- The row date is by week and you want to report monthly, any thoughts on how to split a week between months correctly
- Don't see a product to select
Suggestions:
- Pivot the data then use slice & dice to add product selection and any other filter criteria desired (it has to be in the raw data though)
- In pivot recalculate percentages based on raw data - using percentages to calculate percentages is a good way to cause problems
- You can add 'helper' columns in the raw data to delineate the year/month however you want, or utilize Pivot's calculated field to create what you need.

Thank you!

A big follow up question I have - is there a way to structure my data within a single table so that I can create a pivot table/pivot chart as you describe?

Currently I have around 200 worksheets containing data similar to my example above - one for each product. I actually manually construct that data from two different raw sources (sales data dump, marketing data dump. Could I just maintain two worksheets for each raw data source and somehow structure the Pivot Table or Pivot Chart to sum up by sku and time period, and draw the above graph based on a SKU slicer?

There is not any actual date-data within my raw data - I manually pull the data based on specified range, so I'll probably have to manually input the date column myself no matter what..

Below examples of my two raw data sources - each SKU will have a record for each time period (be it a week, or month, etc.)

​MARKETING DATA
Advertised SKUImpressionsClicks(CTR)(CPC)Spend7 Day Total Sales(ACoS)(RoAS)7 Day Total Orders (#)7 Day Total Units (#)7 Day Conversion Rate
N5-DUMMY714111940.2717%$ 3.33$ 645.67$ 485.62132.9579%0.7519199.7938%
1C-DUMMY510741070.2095%$ 2.66$ 284.71$ 389.7073.0588%1.37141513.0841%
T4-DUMMY673462120.3148%$ 2.17$ 459.53$ 901.2650.9875%1.96373717.4528%

<tbody>
</tbody>

SALES DATA
TitleSKUSessionsSession PercentagePage ViewsPage Views PercentageBuy Box PercentageUnits OrderedUnit Session PercentageOrdered Product SalesTotal Order Items
Product 1T4-DUMMY29220.10%39420.25%97%9331.85%$1,588.6977
Product 21C-DUMMY25417.48%34117.52%100%6224.41%$1,492.6162
Product 3N5-DUMMY20013.76%26513.62%99%4321.50%$1,124.0342

<tbody>
</tbody>
 
Upvote 0
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

It appears as though the examples given are actually reports that you would like to have an overall view of for analysis.
If that is so, do you have a way of getting a dump of the real raw data:
Marketing: (for import to Excel)
- Date (month, day, and year - or year, week - or whatever criteria to report - consistent with Sales Data extract) Aggregate marketing data on this criteria
- SKU
- Impressions, clicks, CPC, Spend, Sales, Order count, Unit count, PLUS know the calculation necessary for CTR, ACoS, RoAS values
Sales: (for import to Excel)
- Date (month, day, and year - or year, week - or whatever criteria to report - consistent with Marketing Data extract) Aggregate sales data on this criteria
- SKU
- Title (if wanted) Sessions, Page views, Units Ordered, Sales, Items PLUS know the calculation necessary for percentages
For both of these, I'd suggest gather data by date (month, day, year) and let the pivot summarize data and calculate percentages - giving flexibility for analysis.
Make a new sheet that will use data from sales and marketing that can then be the data source for your pivot and subsequent slice and dice.
 
Upvote 0
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

It appears as though the examples given are actually reports that you would like to have an overall view of for analysis.
If that is so, do you have a way of getting a dump of the real raw data:
Marketing: (for import to Excel)
- Date (month, day, and year - or year, week - or whatever criteria to report - consistent with Sales Data extract) Aggregate marketing data on this criteria
- SKU
- Impressions, clicks, CPC, Spend, Sales, Order count, Unit count, PLUS know the calculation necessary for CTR, ACoS, RoAS values
Sales: (for import to Excel)
- Date (month, day, and year - or year, week - or whatever criteria to report - consistent with Marketing Data extract) Aggregate sales data on this criteria
- SKU
- Title (if wanted) Sessions, Page views, Units Ordered, Sales, Items PLUS know the calculation necessary for percentages
For both of these, I'd suggest gather data by date (month, day, year) and let the pivot summarize data and calculate percentages - giving flexibility for analysis.
Make a new sheet that will use data from sales and marketing that can then be the data source for your pivot and subsequent slice and dice.

Thank you again GR00007,

I don't mean to badger you with follow up questions, but can you advise me or point me in the direction of a resource that could walk me through what you suggest?

I am envisioning this process:

1) Download weekly data dumps of Sales and Marketing raw data
2) Adding Date date to each (probably just a "Week Ending" Column)
3) Appending each successive weekly dump to an aggregate "Sales" and aggregate "Marketing" worksheet
4) Combing both files into a pivot table

I am not skilled at Pivot Tables (yet! :)) so I am unsure of how to ensure the pivot table gathers the data by week/month/year (ideally this would be user-selectable with a slicer or something). Further, in the marketing data dump, there are 2 or more rows for each SKU - so I need to figure out how to make the pivot table both gathers the SKU level data by week, while also summing data per SKU/Week from the marketing data dump.

Below is an example again for one SKU/1 week of marketing raw data dump:

Start DateEnd DatePortfolio nameCurrencyCampaign NameAd Group NameAdvertised SKUAdvertised ASINImpressionsClicks(CTR)(CPC)Spend7 Day Total Sales(ACoS)(RoAS)7 Day Total Orders (#)7 Day Total Units (#)
May 05, 2019May 11, 2019Not groupedUSDDUMMY | Manual | CPC0J-M0VS-DUMMYSKU 1ASIN 1864481430.1654%$ 2.44$ 348.68$ 462.6275.3707%1.331819
May 05, 2019May 11, 2019Not groupedUSDDUMMY | Auto | CPC0J-M0VS-DUMMYSKU 1ASIN 197750.5118%$ 0.37$ 1.85$ 0.000.0000
May 05, 2019May 11, 2019Not groupedUSDDUMMY | Manual | CPC0J-M0VS-DUMMYSKU 1ASIN 137041.0811%$ 0.93$ 3.70$ 73.945.0041%19.9833
May 05, 2019May 11, 2019Not groupedUSDDUMMY | Manual | PAT | CPCProduct TargetingSKU 1ASIN 115689110.0701%$ 1.45$ 15.97$ 0.000.0000

<tbody>
</tbody>
 
Upvote 0
Re: Help create Pivot Chart to show PY, YTD, Forecast figures for multiple SKUs

Looks good, and appending data weekly to the same sheets would require just a refresh to reflect the addition on the pivot.
There are many tutorials on pivots, this is just one with a business focus including sales and commissions: https://excelwithbusiness.com/blog/pivot-table-how-to-guide/
...this one gets into details: https://exceljet.net/excel-pivot-tables --- many many others, I would suggest start simple then dive into enhancements to aid analysis.
You mention monthly - do you have a 4/4/5 calendar - that's one where whole weeks are grouped into two four week months followed by a five week month (364 days - having to add a week about every seven years) There's pluses and minuses to that, it's up to your accountants to decide. You could have a calendar tab with a lookup by date to find the associated month.
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,765
Members
449,120
Latest member
Aa2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top