Create an Excel Stacked Column Chart with PivotTable Subtotals
Question details
Create a chart that displays each Level 1 item as a column, with its Level 2 items stacked within it.

- Product
- Microsoft Excel PivotTable and PivotChart
- Device & OS
- not provided
- Scenario
- The user wants to visualize parent-level subtotals and their child-level contributions in the same chart.
- Observed behavior
- The desired combination of hierarchy levels and chart types is not directly available in a PivotChart.
Check that the PivotTable shows Level 1 items, Level 2 items, and the value you want to chart. Confirm that the Level 2 values add up to the subtotal you want each column to represent.
Build a stacked column chart from a separate summary table
Use a regular chart when a PivotChart cannot arrange the hierarchy as needed.
On a worksheet, create a table with Level 1 items in the first column and one column for each Level 2 item. Enter the corresponding values from the PivotTable, using zero where a Level 2 item has no value for a parent.
To keep the summary connected to the PivotTable, type = in a summary cell and select the corresponding PivotTable value. Excel may create a GETPIVOTDATA formula; repeat for the other values and check that each formula references the intended items.
Select the Level 1 labels, Level 2 headers, and value cells. Choose Insert > Column or Bar Chart > Stacked Column.
If Level 1 items are not on the horizontal axis, select the chart and choose Chart Design > Switch Row/Column. Each Level 2 item should appear as a series within the Level 1 columns.
After the source data changes, select the PivotTable and choose PivotTable Analyze > Refresh. Check the summary table and chart, especially if new Level 1 or Level 2 items have appeared.

Build the summary chart in WPS Spreadsheets
Use a summary table and a regular stacked column chart in WPS Spreadsheets to show each Level 1 total as a stack of Level 2 values.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select the workbook containing your data or PivotTable.
- 2. Prepare the summary: Create a table with Level 1 items in the first column, Level 2 items as column headers, and their corresponding values in the cells.
- 3. Insert a stacked chart: Select the summary table, then choose Insert > Chart and select a stacked column chart.
- 4. Verify the series: Check that Level 1 items appear on the horizontal axis and Level 2 items appear as stacked series. Use the chart's data settings to switch rows and columns if needed.

Frequently Asked Questions
Why use a regular chart instead of a PivotChart?
A PivotChart has limitations on how hierarchy levels and chart types can be combined. A regular chart built from a separate summary table gives you more control over the category labels and series.
Should I add the subtotal as a separate chart series?
No. When the Level 2 values add up to the Level 1 subtotal, the full height of the stacked column already represents that subtotal. Adding it as another series would double-count it.
Will the summary chart update when I refresh the PivotTable?
Values linked to the PivotTable can update after you select PivotTable Analyze > Refresh. Check the summary layout if new categories appear, because new rows or columns may need to be added to the chart source.
What if the chart shows Level 2 items on the horizontal axis?
Select the chart and choose Chart Design > Switch Row/Column. Confirm that Level 1 items are the categories and Level 2 items are the stacked series.




