How to Filter a Pivot Table Globally
In this article
Filtering a pivot table globally means applying a filter that affects the entire pivot table—all rows, columns, and values—at once, rather than filtering individual row or column fields. This is useful when you want to focus on a specific segment (e.g., a particular year, region, or product category) without having to set the same filter repeatedly on multiple fields. It also makes your pivot table more interactive, as viewers can change the global filter from a single control. Before you start, ensure your data is in a proper tabular format (each column has a header, no blank rows/columns) and that you have already created a pivot table.
What You'll Need
- A spreadsheet application that supports pivot tables: Microsoft Excel (2010 or later), Google Sheets, or LibreOffice Calc.
- A dataset with at least one field that can be used as a global filter (e.g., a date, year, category, or region).
- An existing pivot table created from that data. If you don't have one, create it first: select your data range and insert a pivot table.
Step-by-Step
- Open your spreadsheet and navigate to the worksheet that contains your pivot table.
- Click anywhere inside the pivot table to activate the PivotTable Tools (in Excel) or the pivot table editor (in Google Sheets).
- Add a field to the Filters area (also called the Report Filter or Global Filter). In Excel, you'll see a pane on the right with four areas: Filters, Columns, Rows, and Values. In Google Sheets, the pivot table editor has a similar layout. Drag the field you want to filter by (e.g., "Year" or "Region") into the "Filters" area. This field will become a global filter.
- Use the filter dropdown that appears at the top of the pivot table (usually above the top-left corner of the table). In Excel, it shows the field name with a dropdown arrow next to it. In Google Sheets, it appears as a dropdown in the top row of the pivot table.
- Select the filter criteria: Click the dropdown arrow, then choose the value(s) you want to display. You can select a single item, multiple items (by checking the boxes), or use search to find items. In Excel, you can also use the "Search" box to type a value. To show all data again, select "(All)" or check all items.
- Click OK or Apply to apply the filter. The entire pivot table will immediately update to show only the data that matches the selected criteria.
- Change the filter anytime by clicking the dropdown again and selecting a different value. The global filter remains active until you change it or remove the field from the Filters area.
- To remove the global filter entirely: In Excel, click the dropdown and select "(All)", or drag the field out of the Filters area. In Google Sheets, click the "X" next to the filter field in the editor or remove it from the Filters section.
Common Mistakes
- Confusing global filters with slicers: Slicers are visual buttons that also filter, but they are separate objects. A global filter (Report Filter) is a dropdown embedded in the pivot table. Both can be used, but they are not the same.
- Filtering the source data instead: If you filter the raw data range, the pivot table may not update correctly or may show outdated information. Always use the pivot table's built-in filter controls.
- Placing the field in the wrong area: Dragging a field to Rows or Columns will not create a global filter—it will add it as a row/column header. Make sure you drop it in the "Filters" area.
- Forgetting to refresh after changing source data: If you add or modify data in the source range, the pivot table (and its global filter options) may not reflect the changes until you refresh. Right-click the pivot table and choose "Refresh" (Excel) or use the refresh button in Google Sheets.
Tips
- Use multiple global filters: You can add more than one field to the Filters area. For example, filter by both "Year" and "Region" to narrow down further. Each filter appears as a separate dropdown above the pivot table.
- Use slicers for better visuals: If you want a more user-friendly interface, consider using slicers (Excel) or filter controls (Google Sheets). Slicers can be linked to multiple pivot tables, making them even more powerful.
- Name your pivot table: In Excel, give your pivot table a descriptive name (e.g., "SalesPivot") in the PivotTable Analyze tab. This helps when writing formulas that reference it.
- Create a dashboard: Combine global filters with charts to create an interactive dashboard. When you change the filter, charts linked to the pivot table update automatically.
- Use the "Select Multiple Items" feature: In Excel, you can check the box "Select Multiple Items" in the filter dropdown to choose several values at once, which is handy for comparing specific subsets.
Troubleshooting
- The filter dropdown is grayed out or not working: This can happen if the pivot table is corrupted or if you're in edit mode. Try clicking outside the pivot table and then back on it. If that fails, right-click and choose "Refresh" or "PivotTable Options" to check settings.
- The filter doesn't show all values: If you've added new data to the source range, the pivot table might not recognize it. Update the source range: In Excel, go to PivotTable Analyze > Change Data Source and select the new range. In Google Sheets, edit the data range in the pivot table editor.
- The filter applies to only part of the pivot table: This usually means you accidentally added the field to Rows or Columns instead of Filters. Check the Field List and drag it to the correct area.
- Filter options are limited to a few items: If your data has many unique values, the dropdown may only show a limited number. Use the search box to find specific items, or type the value directly if the option is available.
- Changes to the filter don't affect charts: If you have charts based on the pivot table, they should update automatically. If not, ensure the chart is actually using the pivot table data (not a static copy). You may need to refresh the chart or recreate it.
Frequently Asked Questions
Can I use a global filter on multiple pivot tables at once?
Yes, in Excel you can use slicers to filter multiple pivot tables simultaneously. Connect the slicer to all relevant pivot tables. In Google Sheets, you can use the "Filter" feature in the pivot table editor, but it only affects that specific pivot table.
What's the difference between a global filter and a slicer?
A global filter (Report Filter) is a dropdown that appears above the pivot table. A slicer is a floating button that you can place anywhere and can be connected to multiple pivot tables. Slicers are more visual and user-friendly, but both achieve the same filtering effect.
Can I set a default global filter so it opens with a specific value?
Yes, simply apply the filter as you normally would, then save the file. The filter setting is saved with the pivot table. When you reopen the file, the pivot table will show the filtered data.
How do I clear a global filter quickly?
Click the filter dropdown and select "(All)" (Excel) or click the "X" next to the filter field in the editor (Google Sheets). Alternatively, you can remove the field from the Filters area entirely.
Does a global filter affect calculated fields or totals?
Yes, the global filter filters the underlying data, so all calculations, including totals and subtotals, are recalculated based on the filtered data. This is the desired behavior for most analyses.
Can I use a date range as a global filter?
Yes, if you have a date field, you can add it to the Filters area. In the dropdown, you can choose specific dates, or in Excel, you can use the "Date Filters" option to select a range like "Between" or "Last Month".