How to Keep a Top 5 Filter After Clearing a PivotTable Slicer
Question details
The user wants to prevent a PivotTable or PivotChart from resetting its Top 5 value filter when a connected slicer is cleared.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Filtering data using a slicer on a dashboard that includes a Top 5 PivotChart.
- Observed behavior
- Clearing the slicer removes the Top 5 value filter, causing the PivotTable and PivotChart to display all items instead of maintaining the Top 5 view.
Check your PivotTable setup to identify which specific fields have the Top 5 value filter applied, and locate the slicers connected to your report.
Use a Separate PivotTable and Disconnect the Slicer
The most reliable way to prevent slicers from clearing your Top N filter is to use an independent PivotTable dedicated exclusively to the Top 5 chart.
Because slicers and value filters often interact dynamically, clearing a slicer can reset the visibility of all items in the PivotTable. By creating a separate PivotTable for your Top 5 chart and disconnecting the slicer from it, you isolate the chart from the slicer's reset behavior.
Select your existing PivotTable, copy it, and paste it into a new area or worksheet.
In the new PivotTable, right-click the row field, select 'Filter', then 'Top 10'. Change the value to 5 and click OK.
Select the new PivotTable, navigate to the Insert tab, and insert your desired PivotChart for the Top 5 view.
Right-click the slicer, choose 'Report Connections' (or 'PivotTable Connections'), and uncheck the box for the newly created Top 5 PivotTable. Click OK.

Create a Helper Summary Table with Formulas
If you need the slicer to dynamically filter the dataset but still restrict the chart to the top 5 results, extract the data using spreadsheet formulas.
Create and Manage PivotTables with WPS Spreadsheet
WPS Spreadsheet offers robust PivotTable features, allowing you to easily manage value filters, insert slicers, and create dynamic dashboards without losing your report structures. It handles complex data analysis tasks effortlessly.
- 1. Insert a PivotTable: Open your workbook in WPS Spreadsheet, select your data range, go to the Insert tab, and click 'PivotTable'.
- 2. Apply a Top 10 Filter: Click the row label drop-down arrow in your PivotTable, select 'Value Filters', choose 'Top 10', and adjust the number to 5.
- 3. Add a Slicer: Navigate back to the Insert tab and click 'Slicer' to add visual filtering to your report.
- 4. Manage Slicer Connections: Right-click the inserted Slicer, select 'Report Connections', and check or uncheck the PivotTables you want to link.

Frequently Asked Questions
Why does clearing a slicer remove my value filters in a PivotTable?
Slicers and value filters interact on the same data cache. When a slicer is cleared, it sends a command to refresh the filter state across the data source, which can sometimes override or reset specific value filters (like a Top 5 filter) applied to the same fields.
Can I apply a slicer to a PivotChart without affecting the PivotTable?
No. In spreadsheet software, slicers directly control the underlying PivotTable, and the PivotChart simply reflects that PivotTable's data. To separate their behaviors, you must create a dedicated PivotTable specifically for the chart.
Is the 'Top 10' PivotTable filter customizable?
Yes. Despite the default name 'Top 10', you can adjust the numerical parameter to any number (such as 3, 5, or 20) and choose whether to filter by the top or bottom items in the menu settings.




