Sub topic 8
Connect Each Slicer to the Right Charts and Pivot Tables
Assume you know how to create a slicer, pivot table, and chart in Google Sheets. You should also understand ranges, sheet tabs, and simple formulas. This chapter focuses on scope: which objects a slicer can filter and why some objects do not change.
How slicer scope works
A slicer is connected to a data range and one column in that range. For example, a Region slicer might use Data!A1:F1000 and filter the Region column.
A slicer affects charts and pivot tables that use the same source data range. A chart built from a pivot table usually changes when the pivot table changes. A chart built from a separate formula summary does not automatically respond to the slicer.
The slicer does not filter every object on the sheet. Its effect depends on the relationship between the slicer's data range and each object's source.
Match the slicer and object data ranges
To connect a slicer to a pivot table or chart:
- Confirm the slicer's data range. Select the slicer, choose its three-dot menu, and select Edit slicer. Record the range shown under Data range.
- Open the pivot table editor. Check that its source range covers the same source table.
- Select a chart and inspect its setup. A chart made directly from the source table should use the same range. A chart made from a pivot table should use the pivot table's output range.
- Place the slicer near the objects it controls. This makes the connection clear to viewers.
- Change one slicer value and check every intended object.
For example, if the slicer uses Data!A1:F1000, a pivot table whose source is Data!A1:F1000 can respond. A pivot table based on Archive!A1:F500 cannot respond to that slicer, even if both tables have the same columns.
> callout note > A slicer is not a general filter for formulas. SUM, QUERY, FILTER, and ordinary cell references continue to calculate from their referenced cells unless you design them to detect filtered rows.
Design separate scopes when needed
Google Sheets does not provide a simple “select these three charts only” list for a slicer. Scope comes from shared data ranges. If one slicer should control only a particular group of objects, use a separate source range or a separate dashboard section with objects tied to that range.
For instance, keep current sales in Data and archived sales in Archive. A slicer based on Data!A1:F1000 will control current-sales pivots and charts, but not archive objects.
Use consistent source ranges when objects should respond together. If you add new rows regularly, use an open-ended range such as Data!A1:F when appropriate. Make sure the columns remain consistent and that headers stay in the first row.
A formula summary can still be useful for a chart, but it will not follow a slicer by itself:
=QUERY(Data!A1:F, "select C, sum(F) where C is not null group by C label sum(F) 'Revenue'", 1)To make a summary respond to the same filtering experience, prefer a pivot table for that summary or build a separate filtered-data design. Do not assume that matching labels or chart positions creates a connection.
Test the complete dashboard
Test each slicer with at least two selections and a cleared selection. Check that:
- The intended pivot tables change.
- Charts based on those pivot tables change.
- Charts using the same source range change as expected.
- Unrelated objects remain unchanged.
- Any KPI formula is intentionally connected or intentionally independent.
If a pivot changes but its chart does not, inspect the chart's source range. If nothing changes, compare the slicer's data range with the pivot or chart source. A formula-based KPI may need a SUBTOTAL formula or another filtered-row method instead of a normal aggregation.
Exercise
A Region slicer uses Data!A1:F1000. Pivot A uses that range, Chart A uses Pivot A, and Chart B uses a QUERY result in another area. Which objects should respond when Region is changed?
Show answer
Pivot A and Chart A should respond. Chart B will not respond automatically because its QUERY result is a formula output that the slicer does not filter.