Sub topic 1
Filtering a PivotTable: Report Filters and Field Drop-Downs
Prerequisites
This chapter assumes you can do the following:
- Create a PivotTable from a range or an Excel Table.
- Drag fields into the Rows, Columns, Values, and Filters areas.
- Tell text values from true date values in a cell.
- Find commands on the ribbon, including contextual tabs such as PivotTable Analyze.
Two built-in ways to filter
Before slicers and timelines, a PivotTable already has two filtering tools. Slicers and timelines build on the same idea, so you need to know how these two behave and where they fall short.
- A report filter is a field placed in the Filters area. It appears above the PivotTable as a single drop-down and filters the whole table.
- A field drop-down is the arrow on a Row Labels or Column Labels header. It filters the items shown in that one field.
Report filters
Drag a field, such as Region, into the Filters area. A cell labeled Region with a drop-down appears above the table, showing (All).
- Click the drop-down arrow.
- To pick one item, click it and choose OK.
- To pick several items, tick Select Multiple Items, tick the items you want, and choose OK.
With several items selected, the cell shows (Multiple Items). It does not tell you which items are active. You have to open the drop-down to find out.
Report filters do not change the layout of the table. The filtered field is not a row or column, so values are totaled across the chosen items only.
Field drop-downs
Click the arrow on a row or column header. The menu has three parts.
- Check-box list. Tick or clear individual items. The search box at the top narrows the list as you type.
- Label Filters. Rules for text, such as Begins With or Contains. For date fields, this becomes Date Filters, with options like This Month or Between.
- Value Filters. Rules based on the numbers in the Values area, such as Greater Than or Top 10.
A filtered header shows a funnel icon, so you can see which fields are filtered.
Comparing the two
| Feature | Report filter | Field drop-down |
|---|---|---|
| Location | Above the table | On the row or column header |
| Affects layout | No | Yes, hides rows or columns |
| Multiple selection | Yes, with Select Multiple Items | Yes, with the check-box list |
| Rule-based filtering | No | Yes, label and value filters |
| Shows current selection | Only for one item | Funnel icon only |
Common problems
- Filters on one field replace each other. A field can use only one filter type at a time. Applying a Label Filter clears the check-box selections, and the reverse.
- New items do not appear. After you refresh, items that did not exist before may stay hidden. In the field's drop-down, the check-box filter treats them as excluded unless the setting Include new items in manual filter is on in Field Settings.
- Each PivotTable filters alone. A filter in one PivotTable does not change another, even when both use the same data.
- Unclear state. A report filter showing (Multiple Items) hides the selection. This is the main reason people move to slicers.
Where this leads
Both tools work, but they hide the current selection inside a menu, and neither links to a second PivotTable. Slicers show every item as a button, so the selection is visible. Timelines do the same for dates. The next chapters cover both.
Exercise
A PivotTable has Region in the Filters area, and the filter cell shows "(Multiple Items)". How do you find out which regions are included, and why is this a drawback?
Show answer
Click the drop-down arrow on the Region filter cell. The ticked items are the included regions. The drawback is that the cell itself does not name the selected items, so you must open the menu to check.