Sub topic 4
Selecting Items and Clearing the Filter
This chapter assumes you can build a basic PivotTable and have already inserted a slicer for a field such as Region. Here you learn how clicks on a slicer change the PivotTable, and how to remove the filter again.
How a slicer shows its state
A slicer is a set of buttons, one for each unique item in a field. The button color tells you whether the item is part of the current filter.
- A highlighted button means the item is included in the filter.
- A gray or faded button means the item is excluded.
- When no filter is applied, every button is highlighted and the PivotTable shows all the data.
The exact colors depend on the slicer style, so check the Clear Filter button in the top-right corner of the slicer. It is dimmed when no filter is active and shows a red cross when one is.
Selecting one item
Click a single button. The PivotTable now shows only rows that match that item, and every other button turns gray.
For example, clicking West on a Region slicer leaves only West rows in the PivotTable. The totals, including the grand total, recalculate for those rows only.
Selecting several items
You can include more than one item in two ways.
- Ctrl+click. Hold Ctrl and click each additional button. Items do not need to be next to each other.
- Shift+click. Click the first button, then hold Shift and click the last one. Excel selects the whole block between them.
You can also turn on Multi-Select (the button with a check-list icon in the slicer's top-right corner). With it on, each click adds or removes one item, so no key is needed. This helps on touch screens, where holding Ctrl is not possible.
To remove one item from a multi-item selection, Ctrl+click it again. In Multi-Select mode, click it once.
Clearing the filter
To show all items again, use any of these:
- Click the Clear Filter button in the slicer's top-right corner.
- Select the slicer and press Alt+C.
- Right-click the slicer and choose Remove "Region". This deletes the slicer itself, so use it only if you want to get rid of the control.
Clearing a slicer removes only that slicer's filter. If other slicers or report filters are active, they keep filtering the data.
Slicers work together
When a PivotTable has two slicers, such as Region and Product, their filters combine. The data must satisfy both. Items that have no matching rows under the other slicer's current selection are shown as faded and, by default, moved to the end of the list.
Within one slicer, selected items are combined with OR (West or East). Between slicers, the filters are combined with AND (West and Laptops).
Selecting a slicer without changing the filter
To move, resize, or format a slicer, you must select the slicer itself, not a button. Click the slicer's title bar or its border. Clicking a button always changes the filter.
Common mistakes
| Symptom | Likely cause | Fix |
|---|---|---|
| Only one item stays selected | Clicked without Ctrl or Shift | Use Ctrl+click or turn on Multi-Select |
| Clear Filter button is dimmed but data is still filtered | Another slicer or report filter is active | Check the other controls |
| Slicer button will not clear | A different slicer is hiding the item | Clear that slicer too |
Exercise
A Region slicer has West and East selected, and a Product slicer has Laptops selected. Which rows does the PivotTable show, and how do you reset only the Product filter?
Show answer
It shows rows that are in West or East and also for Laptops (OR within a slicer, AND between slicers). To reset only the Product filter, click the Clear Filter button on the Product slicer, or select that slicer and press Alt+C. The Region selection stays in place.