PivotCharts in Excel: create, filter and customize
Charts built on a PivotTable: creating a PivotChart, filtering right on the chart, dashboards with slicers, limitations and common traps.
A regular chart is tied to a fixed range: when the table changes shape, you have to set the chart up again. A PivotChart is tied to a PivotTable — move a field, add a filter or group dates, and the chart changes instantly.
That makes it perfect for analysis: you switch from a “by region” view to a “by month” view with one drag, and the chart always matches the table.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Sum of Amount | Column Labels | ||||
| 2 | Row Labels | Laptop | Monitor | Printer | Grand Total | |
| 3 | Bukhara | 17 000 000 | 9 600 000 | 26 600 000 | ||
| 4 | Samarkand | 8 500 000 | 12 000 000 | 20 500 000 | ||
| 5 | Tashkent | 25 500 000 | 9 600 000 | 6 400 000 | 41 500 000 | |
| 6 | Grand Total | 51 000 000 | 21 600 000 | 16 000 000 | 88 600 000 | |
| 7 |
Creating a PivotChart
1
Click any cell in an existing PivotTable and choose Вставка → Сводная диаграмма. No PivotTable yet? Click the same button from inside the source data — PivotChart & PivotTable creates both together.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Bukhara | 26 600 000 | ||
| 3 | Samarkand | 20 500 000 | ||
| 4 | Tashkent | 41 500 000 | ||
| 5 | Grand Total | 88 600 000 | ||
| 6 |
2
In the Insert Chart dialog pick a chart type. For comparing categories the best is Column → Clustered Column. Click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Bukhara | 26 600 000 | ||
| 3 | Samarkand | 20 500 000 | ||
| 4 | Tashkent | 41 500 000 | ||
| 5 | Grand Total | 88 600 000 | ||
| 6 |
3
The chart appears. It has field buttons — “Sum of Amount”, “Region ▾” — that let you filter right on the chart. The Grand Total is not plotted.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Bukhara | 26 600 000 | ||
| 3 | Samarkand | 20 500 000 | ||
| 4 | Tashkent | 41 500 000 | ||
| 5 | Grand Total | 88 600 000 | ||
| 6 |
4
Click the chart and the pane on the right becomes PivotChart Fields. There, Axis (Categories) is the PivotTable’s Rows and Legend (Series) is its Columns. Drag Product into Legend (Series): each region gets three columns (the result above).
5
Click the Region ▾ button on the chart and untick the regions you don’t need. The filter applies to the PivotTable as well — the table and the chart always show the same data.
How a PivotChart differs from a regular chart
- Linked. The data source is the PivotTable. You can’t edit the range by hand: in Select Data the Chart data range box is disabled — you shape the chart through the PivotTable.
- Interactive. It filters through field buttons, slicers and timelines.
- Areas have different names. Rows → Axis (Categories), Columns → Legend (Series); Values and Filters stay the same.
- Limited chart types. XY (Scatter), Bubble and Stock charts, as well as the newer types — Treemap, Sunburst, Histogram, Box & Whisker, Waterfall, Funnel and Map — aren’t available for PivotCharts. If you need one, copy the PivotTable result to a plain range and build a regular chart from it.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Jan | 25 500 000 | ||
| 3 | Feb | 12 000 000 | ||
| 4 | Apr | 6 400 000 | ||
| 5 | May | 17 000 000 | ||
| 6 | Jul | 8 500 000 | ||
| 7 | Aug | 9 600 000 | ||
| 8 | Nov | 9 600 000 | ||
| 9 | Grand Total | 88 600 000 | ||
| 10 |
Pro level: PivotCharts for a dashboard
- Hide the buttons. Field buttons clutter a presentation: PivotChart Analyze → Field Buttons → Hide All.
- Add a slicer. Select the chart → PivotChart Analyze → Вставить срез — the slicer drives both the chart and its PivotTable. To hook several charts to one slicer, use Report Connections.
- Pie for shares. Set Show Values As → % of Grand Total in Values and switch the chart type to Pie — product shares are ready.
- A frozen copy. Need an “as of today” picture for a report? Copy the chart and use Paste Special → Picture — it won’t change on the next Refresh.
- Layout. In a dashboard keep the PivotTables on a separate (even hidden) sheet and leave only charts and slicers on the visible one.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Laptop | 51 000 000 | ||
| 3 | Monitor | 21 600 000 | ||
| 4 | Printer | 16 000 000 | ||
| 5 | Grand Total | 88 600 000 | ||
| 6 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.