Excel tutorial
/

PivotTables

Advanced

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.

Книга1 - Excel
—☐✕
A2fxRow Labels
ABCDEF
1Sum of AmountColumn Labels
2Row LabelsLaptopMonitorPrinterGrand Total
3Bukhara17 000 0009 600 00026 600 000
4Samarkand8 500 00012 000 00020 500 000
5Tashkent25 500 0009 600 0006 400 00041 500 000
6Grand Total51 000 00021 600 00016 000 00088 600 000
7
Готово
A PivotTable (regions × products) and its linked PivotChart: Rows become axis categories, Columns become legend series

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.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Сводная таблицаРекомендуемые сводные таблицыТаблица
Таблицы
Рисунки
Иллюстрации
Рекомендуемые диаграммыСводная диаграмма
Диаграммы
A2fxBukhara
ABCD
1Row LabelsSum of Amount
2Bukhara26 600 000
3Samarkand20 500 000
4Tashkent41 500 000
5Grand Total88 600 000
6
Готово

2

In the Insert Chart dialog pick a chart type. For comparing categories the best is Column → Clustered Column. Click OK.

Книга1 - Excel
—☐✕
A2fxBukhara
ABCD
1Row LabelsSum of Amount
2Bukhara26 600 000
3Samarkand20 500 000
4Tashkent41 500 000
5Grand Total88 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.

Книга1 - Excel
—☐✕
A2fxBukhara
ABCD
1Row LabelsSum of Amount
2Bukhara26 600 000
3Samarkand20 500 000
4Tashkent41 500 000
5Grand Total88 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.
Книга1 - Excel
—☐✕
A2fxJan
ABCD
1Row LabelsSum of Amount
2Jan25 500 000
3Feb12 000 000
4Apr6 400 000
5May17 000 000
6Jul8 500 000
7Aug9 600 000
8Nov9 600 000
9Grand Total88 600 000
10
Готово
Date (grouped by month) went into Rows — the chart turned into a trend line by itself. Note that months with no sales (March, June…) are missing entirely

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.
Книга1 - Excel
—☐✕
A2fxLaptop
ABCD
1Row LabelsSum of Amount
2Laptop51 000 000
3Monitor21 600 000
4Printer16 000 000
5Grand Total88 600 000
6
Готово
Product in Rows, chart type Pie: laptops bring in more than half of all sales

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

67 / 154