Sub topic 2
Building a Simple Dashboard with Slicers in Google Sheets
This chapter assumes you can enter cell references and simple formulas, and that your source data is a flat table with a header row on a tab named Data.
Set up the dashboard tab
Keep raw rows and summaries on separate tabs. Create a new tab named Dashboard. Build your pivot tables and charts there, and leave the rows on Data. This keeps the source table intact and lets you rearrange the dashboard without touching the data.
Add your first slicer
Select a cell in the Data table. Choose Data > Add a slicer. In the side panel, confirm the data range covers the header and all rows, such as Data!A1:F1000. Choose the column to filter, such as Region. Then create the slicer on the Dashboard tab.
Filter by values or by condition
A slicer offers two filter modes:
| Mode | Example | Use when |
|---|---|---|
| Filter by values | Keep only West and East | You want to pick specific items from a list |
| Filter by condition | Units is greater than 2 | You want rows that meet a rule, such as a number range or a date after a cutoff |
Use values for categories and conditions for numbers and dates. Clear the filter to show all rows again.
Connect each slicer to the right charts and pivot tables
A slicer filters the rows in its data range. A pivot table or chart responds only when it summarizes those rows. A pivot table built on the same range updates when you change the slicer. A chart built from that pivot table updates with it. A chart built from a fixed block of typed numbers does not respond.
Test each connection by changing the slicer and checking that the chart and pivot table change together.
Exercise
Exercise
You add a slicer on Region, set to West only, but a chart built from a typed summary block still shows all regions. What is the likely cause, and how do you fix it?
Show answer
The chart reads typed numbers, not rows from the slicer's data range, so the slicer cannot change it. Rebuild the summary as a pivot table on the Data range, then chart that pivot table.