Sub topic 1
Filtering a PivotTable: Report Filters and Field Drop-downs
Prerequisites
This chapter assumes you can create a basic PivotTable, place fields in Rows, Columns, Values, and Filters, and distinguish text values from true Excel dates.
Filtering a PivotTable
A PivotTable can filter data in two common ways:
- A report filter is a field placed in the Filters area. Its selection appears above the PivotTable.
- A field drop-down filter is the filter button beside a row or column field inside the PivotTable.
Both methods change which source records contribute to the displayed values. They do not delete records from the source data.
| Filter method | Best use | Limitation |
|---|---|---|
| Report filter | A simple, visible choice such as Region | Uses a compact drop-down |
| Field drop-down | Filtering a row or column field | Less obvious in a dashboard |
For example, place Region in Filters to select one region above the report. Alternatively, place Product in Rows and use its field button to show only selected products.
What Slicers Are and Why They Help
A slicer is a visual filter control for a PivotTable. It displays each available item as a button, so users can see the current filter state without opening a menu. A slicer also makes multiple selection easier.
Slicers are useful in dashboards because they provide:
- A clear list of available values.
- A visible indication of the active selection.
- Buttons for selecting several values.
- A convenient way to reuse one filter across compatible PivotTables.
Inserting a Slicer
- Click anywhere inside the PivotTable.
- Select PivotTable Analyze on the ribbon.
- Select Insert Slicer.
- Select a field, such as
Region, and choose OK. - Move or resize the slicer beside the PivotTable.
Excel creates buttons for the field's items. The slicer remains connected to the PivotTable even when you move it.
Selecting Items and Clearing the Filter
Click one slicer button to select a single item. Hold Ctrl while clicking to select or deselect additional items. A selected slicer item changes appearance, while excluded items become less prominent.
To restore all items, select the slicer's Clear Filter button. In a PivotTable field drop-down, choose Clear Filter From followed by the field name.
Exercise
How would you filter a PivotTable to show only the East and West regions, then return to all regions?
Show answer
Insert or use the Region filter, select East and West, and then use Clear Filter to restore all regions.