top of page

You are learning PivotTables in MS Excel

How to filter PivotTable data based on another PivotTable?

Excel doesn't directly allow you to filter a PivotTable based on the results of another PivotTable. However, there are a couple of workarounds you can use to achieve a similar outcome:

1. Slicers (if applicable):

* If both PivotTables share a common field (dimension), you can leverage slicers.
* Insert slicers for the desired field in both PivotTables.
* Selecting items in one slicer will automatically filter the other PivotTable based on the shared field.

2. Helper Column and Filtering:

1. Create a Helper Column:
* In the source data for your second PivotTable, create a new helper column.
* Use a formula that checks the values in the field you want to filter by (from the first PivotTable) and returns TRUE or FALSE based on your criteria.

2. Build the Second PivotTable:
* Include the newly created helper column in your second PivotTable.

3. Filter by Helper Column:
* In the second PivotTable, filter the data by the helper column, showing only rows where the formula returned TRUE. This effectively filters based on the values in the first PivotTable.

Choosing the Right Method:

* If you only need to filter by a single shared field, slicers are the simpler option.
* If you need more complex filtering logic or the PivotTables don't share a common field directly, the helper column and filtering approach offers more flexibility.

bottom of page