Skip to content

Filter PivotTables with slicers and timelines

More from PivotTables8 minPremium

Builds on Rearrange a PivotTable with Rows, Columns and Filters and Filter a table with slicers.

A regional manager for a chain of garden centers in Ontario goes through the sales PivotTables in a weekly call. Each store manager asks to see their own store, and opening filter drop-downs on a shared screen slows the call down.

How it works

A slicer is a panel of buttons that filters a PivotTable, one button for each item of a field. Click a cell in the PivotTable, choose PivotTable Analyze > Insert Slicer, check the fields you want and click OK.

  • Click a button to show only that item. Hold Ctrl (Cmd on a Mac) and click to add or remove items, or turn on Multi-Select at the top of the slicer.
  • Clear Filter, at the top right of the slicer, shows every item again.
  • Slicers work together, so a row has to match every slicer to stay in.

A slicer filters the way a report filter does, but its highlighted buttons show everyone what's in view. One slicer can also filter several PivotTables built on the same data: select it, choose Slicer > Report Connections and check the PivotTables.

A timeline does the same job for dates. Choose PivotTable Analyze > Insert Timeline and check a date field. Pick years, quarters, months or days in its corner, then click a period or drag across several.

Example

The manager adds a Store slicer, a Channel slicer and a timeline on Order date. She clicks Ottawa, then Online, then drags the timeline across October and November, and the PivotTable shows Ottawa's online sales for those two months.

Common mistakes

  • A plain click on a second store. It replaces the first one. Hold Ctrl (Cmd on a Mac) to add it.
  • A slicer left on one item after the meeting. The next person's totals come out short. Click Clear Filter when you're done.
  • A PivotTable missing from Report Connections. The list shows only the PivotTables built on the same data, so one made from a copy of the list can't share the slicer.

In short

  • Insert Slicer adds a panel of buttons for each field you check.
  • Click to filter, Ctrl+click (Cmd+click) for several items, and Clear Filter to show them all.
  • Report Connections lets one slicer filter several PivotTables, and a timeline filters a date field by period.

Practice

Premium

4 exercises: 2 PivotTables, 1 find-it task and 1 quiz question.

Practice is part of Premium

Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.