Show PivotTable Grand Totals in an Excel Chart Legend
Question details
The user wants to display each series or category grand total in an Excel chart legend.

- Product
- Microsoft Excel PivotChart
- Device & OS
- not provided
- Scenario
- A PivotTable and stacked PivotChart summarize values by category or series.
- Observed behavior
- The PivotChart legend does not automatically include the corresponding grand totals.
Check that the PivotTable displays the grand totals you want to show and identify the total cell for each chart series. If totals are hidden, select the PivotTable and use Design > Grand Totals to enable them.
Create a regular stacked chart with grand totals in the legend
Use helper cells to combine each series name with its PivotTable grand total, then chart the linked values.
This creates a regular chart rather than a PivotChart. It can reflect changes in the linked PivotTable values, but it will not have PivotChart field buttons.
In an empty area of the worksheet, enter a formula such as =H10 in a helper cell, replacing H10 with the PivotTable grand total cell for the first series. Repeat for each series.
In the header cell for each series, combine its name and linked total. For example, if H2 contains the linked total, enter ="Product A (Total: "&TEXT(H2,"#,##0")&")".
Below the helper headers, create a category column and link the corresponding PivotTable values for each series. Keep the grand total cells outside the range of plotted values so the totals are not added to the stacks.
Select the category labels, helper headers, and linked values, then choose Insert > Column or Bar Chart > Stacked Column. The legend uses the helper headers as series names.
Change a PivotTable filter or refresh the PivotTable, then verify that the helper cells and chart legend show the expected totals. Adjust the links if the PivotTable layout has moved.

Show PivotTable totals in a WPS chart legend
In WPS Spreadsheets, link PivotTable totals and values to a helper table, then use its calculated headers as the legend labels in a regular stacked chart.
- 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and locate the PivotTable and its grand totals.
- 2. Link the totals: In an empty worksheet area, enter a cell-reference formula for each PivotTable grand total you want to include in the legend.
- 3. Prepare the chart table: Create a category column and link the PivotTable values below each series header. Use a formula such as ="Product A (Total: "&TEXT(H2,"#,##0")&")" for a header, where H2 holds that series total.
- 4. Insert a stacked chart: Select the helper table, including its headers but excluding the separate total cells, and choose Insert > Chart > Stacked Column. Check that the legend displays the calculated headers.

Frequently Asked Questions
Why doesn't my PivotChart legend show grand totals?
Excel PivotChart legends normally show series names, not PivotTable grand totals. A regular chart using calculated helper headers can display both.
How do I turn on grand totals in the PivotTable?
Select the PivotTable, open the Design tab, and choose Grand Totals. Enable totals for rows, columns, or both, depending on where the needed totals appear.
Will the legend update when I filter the PivotTable?
The helper chart can update when its linked cells change after filtering. Check the links if filtering or rearranging fields moves the PivotTable values or totals.
Can I show a total for every category in the legend?
Legend entries represent series. To show each category as a separate legend entry, arrange the helper table so each category is a series and give each series a header containing its total.




