PivotCharts: practice exercises
Insert PivotChart, a chart that follows its PivotTable, field buttons, filtering from the chart, chart styles, Collapse Entire Field, drill down. 7 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.
This lesson has strips of Excel's Insert and Chart Design buttons above a practice sheet: make and change each chart as you would in Excel, and each task is checked as you go.
How it works
A PivotChart is a chart of a PivotTable. Change the PivotTable (a field in Rows, a filter, a slicer) and the chart follows, so a dashboard stays up to date.
Click inside the PivotTable, then PivotChart ▾ on the Insert strip. Click the chart for the Chart Design strip, as with any chart, and the PivotChart Analyse strip for its field buttons and drilling down.
A PivotChart: an example
A PivotTable in F1 shows each region's total sales: Region in Rows, Sum of Sales (£) in Values. Click any cell in it, then PivotTable Analyse > PivotChart and pick Clustered Column. You get a column for each region, and the series is called Total.
Now drag Team into the PivotTable's Columns. The chart changes too: a column for each team in each region. In a PivotChart's field list, Rows is called Axis (Categories) and Columns Legend (Series).
A PivotChart can be a column, bar, line, area, pie or combo chart, but not a scatter, histogram, box and whisker, waterfall, funnel or sunburst chart. Excel says “You can't use this chart type with a PivotChart”.
Windows: click inside the PivotTable, PivotTable Analyse tab, PivotChart. Or Insert > PivotChart, which can make the PivotTable and the chart together.
Mac: click inside the PivotTable, PivotTable Analyse tab, PivotChart, or Insert > PivotChart.
Field buttons, filters and styles
A PivotChart has grey field buttons: Sum of Sales (£) at the top left, Region ▼ at the bottom left, and a button for any field in the legend or the filters. Click Region ▼ to sort or filter the regions from the chart; the PivotTable is filtered too, and a slicer on the PivotTable filters the chart.
For a report, hide them: PivotChart Analyse > Field Buttons > Hide All, or pick which kinds show from the same list (Report Filter, Legend, Axis, Value).
Styles, colours, titles and layouts work as on any chart, on the Chart Design tab. Change Chart Type and Switch Row/Column work too; on a PivotChart, Switch Row/Column swaps the PivotTable's Rows and Columns fields.
Drilling down
With two fields in Rows (Region, then Team) the chart has a column for every team, grouped by region. To see just the regions, collapse the outer field: PivotChart Analyse > Collapse Entire Field, or the − button at the bottom right of the chart. Each region becomes one column, its total. Expand Entire Field (or +) drills back down to the teams.
The PivotTable collapses with the chart: each region shows its total, with a + beside it.
On Windows and on a Mac, the + and − buttons show when Field Buttons > Show Expand/Collapse Entire Field Buttons is ticked; the same commands are on the PivotTable's Active Field group.
What you'll practise
- Chart the PivotTable's sales by region: click inside the PivotTable, then PivotChart ▾ > Clustered Column.
- Split each region's column by team. Add Team to the PivotTable's Columns (the PivotChart calls it Legend (Series)), and watch the chart follow.
- Use the chart's Region ▼ field button (bottom left) to show only East and South.
- The chart is going in a report, so the grey field buttons shouldn't show. Hide them all: Field Buttons ▾ > Hide All.
- Style the PivotChart like any chart: Style 6, and the colours Monochromatic Palette 2.
- Create a PivotChart that displays the data from the PivotTable as a Clustered Bar chart.
- Collapse the Region field in the PivotChart so that it shows only the total for each region.