Pivot Table Issues

Create an Excel Stacked Column Chart with PivotTable Subtotals

Algirdas JasaitisAlgirdas Jasaitis Nov 18, 2026 869 views

Question details

Create a chart that displays each Level 1 item as a column, with its Level 2 items stacked within it.

Create an Excel Stacked Column Chart with PivotTable Subtotals
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.
Before you start

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.

Solution 1Recommended

Build a stacked column chart from a separate summary table

Use a regular chart when a PivotChart cannot arrange the hierarchy as needed.

1
Create the summary layout

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.

2
Link values to the PivotTable

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.

3
Insert the chart

Select the Level 1 labels, Level 2 headers, and value cells. Choose Insert > Column or Bar Chart > Stacked Column.

4
Check the chart orientation

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.

5
Refresh and verify

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 a stacked column chart from a separate summary table
Avoid counting subtotals twice: The height of each stacked column is the sum of its Level 2 segments. Do not include the Level 1 subtotal as another plotted series, or the column total will be overstated.
Create stacked columns in WPS

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. 1. Open the workbook: Open WPS Spreadsheets and use Open to select the workbook containing your data or PivotTable.
  2. 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. 3. Insert a stacked chart: Select the summary table, then choose Insert > Chart and select a stacked column chart.
  4. 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.
Show parent totals and child contributions in one stacked column chart.Open and save Microsoft Excel XLSX files.Edit the summary values and chart together in a familiar spreadsheet interface.Use WPS Office for free.
QA img-9

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.