Sub topic 4
Turn summaries into charts
This chapter assumes you have a flat source table on a Data tab and at least one pivot table that summarizes it, as covered in the previous chapters. You should be comfortable selecting ranges and opening menus in Google Sheets. By the end you will have charts that read from pivot tables and update when the source data changes.
Why charts should read from summaries
A chart draws one mark for each row or column of the range you give it. If you point a chart at 50,000 raw order rows, you get an unreadable plot. If you point it at a pivot table with four regions, you get four bars.
A pivot table is a summary layer. It collapses many rows into a few totals. A chart built on that layer shows the same totals and redraws when the pivot table changes. This chain is what a slicer will later control.
You have two ways to get a summary for a chart:
| Source for the chart | Strength | Weakness |
|---|---|---|
| Pivot table | Slicers can filter it. It adds new categories automatically. | Layout is controlled by the pivot editor, and you cannot add arbitrary cells inside it. |
| Formula range (for example `QUERY`) | Full control over columns and labels. | A slicer attached to the source data does not filter a formula's output the same way. You must handle filtering yourself. |
For a slicer-driven dashboard, use pivot tables as the main chart source.
Prepare the pivot tables
Build one pivot table per chart. A single pivot table with many fields makes a poor chart source, because each chart type expects a particular shape.
For this chapter, create two pivot tables on a tab named Summaries:
- Revenue by region. Rows:
Region. Values:Revenue, summarized bySUM. - Revenue by month. Rows:
Order Date, grouped byYear-Month. Values:Revenue, summarized bySUM.
To group dates, right-click a date value in the pivot's row labels and choose Create pivot date group, then pick Year-Month. The pivot then shows one row per month instead of one per day.
Place each pivot table on its own area of the Summaries tab, with space around it. Put them side by side with several empty columns between them, or one above the other with empty rows between them. A pivot table grows when new categories appear. If another table sits in the way, Sheets shows the error "Result would overwrite data in..." and the pivot does not render.
Create a chart from a pivot table
- Click any cell inside the revenue-by-region pivot table.
- Choose Insert > Chart.
- Sheets proposes a chart type in the chart editor sidebar. Check the Setup tab.
When you click inside a pivot table before inserting, Sheets sets the chart's data range to the pivot table's range. It also tracks the pivot table as it resizes. You can confirm this in the Data range field, which shows a reference like Summaries!A1:B5.
Choose a chart type that fits the question
Pick the chart type from the question the chart answers, not from what looks good.
| Question | Chart type | Notes |
|---|---|---|
| How do categories compare? | Column or bar chart | Use bars when labels are long. |
| How does a value change over time? | Line chart or column chart | Needs a date or ordered category on the X-axis. |
| What share does each part hold? | Pie or donut chart | Works for five or fewer categories. |
| How do two measures relate? | Scatter chart | Needs two numeric columns. |
For revenue by region, choose Column chart. For revenue by month, choose Line chart.
Check the axis and series
Open the Setup tab and confirm these settings:
- X-axis is the pivot's row field (
Region, or the month group). - Series is the pivot's value column (
SUM of Revenue). - Aggregate is unchecked. The pivot has already summed the values. If Aggregate is on, Sheets sums again, which is harmless for a one-row-per-category pivot but wrong when categories repeat.
- Switch rows/columns is off unless the chart is drawn sideways from what you expect.
If the chart shows one bar named after the total instead of one per region, the pivot's range probably includes the header row as data. Turn Use row 1 as headers on in the data range settings.
Understand how charts connect to pivot tables
A chart built on a pivot table stays linked to it. These behaviors affect the dashboard you build later:
- New region values appear in the pivot and then in the chart without any edit.
- If the pivot table is deleted, the chart keeps its last drawing for a moment and then becomes empty or shows an error.
- If you move the pivot table by cutting and pasting it, the chart reference may break. Prefer Edit > Move only when you are sure, and recheck the chart's range afterward.
- If you change which fields the pivot uses, the chart's series may change. Recheck the Setup tab after each pivot edit.
A pivot table that is filtered by a slicer produces fewer rows, and the chart draws fewer bars. The chart does not need its own filter for this to work. You add the slicer in a later chapter. For now, treat it as a reason to build charts directly on pivots.
Customize the chart so it reads well
Open the Customize tab in the chart editor. Make these changes for each chart:
- Chart & axis titles. Set a title that states the measure and period, such as "Revenue by region". Set the vertical axis title to "Revenue (USD)" if that applies to your data.
- Series. Set one color. A single-series chart does not need a rainbow. Turn on Data labels if the number of bars is small.
- Legend. Set position to None for single-series charts. A legend that repeats the title wastes space.
- Horizontal axis. For the monthly line, set the label format so months read as
Jan 2026, not as full dates. - Vertical axis. Set the minimum to 0 for column charts. A column chart with a truncated axis exaggerates differences.
A chart title is static text. It does not change when a slicer filters the data. Write titles that stay true under any filter, for example "Revenue by region" rather than "Revenue by region, all years".
Test the chart against changing data
A chart that looks right once can still fail later. Run these three checks before moving on:
- Add a row. On
Data, add a new order in a new region, such asNorth. Return toSummaries. The pivot should show aNorthrow and the chart should show aNorthcolumn. - Add a month. Add an order dated in a month not yet present. The monthly line should gain a point.
- Blank cell. Clear the
Regionvalue in one row. The pivot shows a blank category. A blank value in a key column is a data quality problem, so fix it in the source table rather than hiding it in the chart.
If a new row does not appear, the pivot's source range is probably fixed to specific rows. Open the pivot editor and set the data range to an open-ended range such as Data!A1:F, which covers every row added later.
Pivot source range, fixed: Data!A1:F4
Pivot source range, open-ended: Data!A1:FCommon errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Chart has one huge bar labeled "Grand Total" | Pivot totals are included in the range | Turn off **Show totals** in the pivot editor |
| Chart shows one bar for each order | Chart was built on `Data`, not on the pivot | Change the **Data range** to the pivot table |
| Months sort as text (Apr, Aug, Dec) | Dates were not grouped, or were typed as text | Use **Create pivot date group** and check that dates are real dates |
| Chart is empty | The pivot shows an overwrite error | Clear the cells the pivot needs to expand into |
| New rows never appear | Pivot source range is fixed | Use an open-ended range such as `Data!A1:F` |
| Series named "Column B" | Header row is treated as data | Turn on **Use row 1 as headers** |
Move the charts to the dashboard
Charts can sit on the same tab as their pivot tables, but the dashboard works better when charts live on their own tab. To move a chart:
- Click the chart, then open the three-dot menu in its top-right corner.
- Choose Copy chart, switch to the
Dashboardtab, and choose Paste > Chart (or press the paste shortcut). - Delete the original chart from
Summariesif you do not need it there.
A pasted chart keeps its link to the pivot table on the other tab. Check this by editing a value in Data and watching the dashboard chart update.
Another option is Move to own sheet, but that gives each chart a full tab. For a one-page dashboard, copy the charts onto a single tab instead. Layout is covered in the next chapter.
A chart-ready summary with QUERY, for comparison
You can also build a chart from a formula instead of a pivot table. This formula creates a revenue-by-region table:
=QUERY(Data!A1:F, "select C, sum(F) where C is not null group by C label sum(F) 'Revenue'", 1)Put it in a cell on Summaries, then build a column chart on its output. The chart works and updates when Data changes. The trade-off is that a slicer controls pivot tables and charts differently from formula output, so use QUERY when you need a custom shape and a pivot table when you want slicer control. The scope chapter returns to this.
Exercise
A column chart of revenue by region shows five bars: West, East, South, North, and one tall bar labeled "Grand Total". Name the setting that causes this and say where you change it.
Show answer
The pivot table's row totals are on, so the "Grand Total" row falls inside the chart's data range. Open the pivot table editor, find the Rows section, and uncheck Show totals. The chart redraws with only the four regions.
Exercise
You add an order for a new region, but the pivot table and its chart do not show it. The pivot's source range is Data!A1:F4. What do you change, and why does the change work?
Show answer
Change the source range to an open-ended range such as Data!A1:F. A fixed range stops at row 4, so the pivot never reads later rows. The open-ended range extends to the last row of the sheet, so new orders are included and the chart draws the new region.
Exercise
Why is a chart built from copied, pasted values a poor choice for a slicer-driven dashboard?
Show answer
Pasted values are static cells. They do not change when the source data changes, and a slicer cannot filter them. A chart on that range stays fixed, so it never responds to the dashboard's controls.