PivotTables can provide great support for analyzing the data in a worksheet, but sometimes even the best (best designed) PivotTable can show more information than needed. In these cases, it may be useful to add filters. Once set, a filter can be changed to suit the viewing needs of different users. This article shows you how to add a filter to a PivotTable so that you have an adequate level of control over the displayed data.
Steps
Step 1. Open Microsoft Excel
Step 2. Navigate and open the document that contains both the pivot table and the data you want to add a filter for
Step 3. Select the sheet containing the pivot table by clicking on the appropriate tab
Step 4. Determine the attribute you want to use as a filter for the pivot table
- The attribute must be chosen from the data columns that feed into the pivot table.
- For example, let's assume your data contains sales by product, month, and region. You can use any of these attributes as a filter and show data for some products, some months or some regions. If you change the field used as a filter, you determine exactly which values to show.
Step 5. Force the Pivot Table Creation Wizard (or field list display) to run by clicking a cell within the pivot table
Step 6. Drag the field you want to use as a filter into the "Report Filter" section of the fields list
- This field may already exist in the "Column Labels" or "Row Labels" section.
- The field may also appear in the Field List as an unused element.
Step 7. Set the filter to show only one of the attribute values
You can set the filter to see a single value or all available ones. Click on the arrow next to the field used as a filter and select "Select Multiple Objects" if you want to select more than one value for your filter
Advice
- Hide the rows that contain the filter selection menu, use the "Protect Sheet" feature and set a password if you don't want other users to be able to modify your PivotTable by changing the current filter. This way you can ship different versions (of the same pivot table) to different people.
- You can filter your data using any of the fields marked as "Row Label" or "Column Label", but to simplify the use of the pivot table and its understanding it is advisable to drag the fields into the "Report Filter" section.