[XL 2007] Filter field list in pivot table

rafaelsgarbulho

New Member
Joined
Mar 11, 2014
Messages
2
Guys, a simple pivot table in excel 2007 has some fields that I filter (like subfields) however the last fields keep displaying all values into the fields list like ignoring previous filters, is there an easy way to fix it? Help me out!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi and Welcome to MrExcel,

I think you're referring to the way the manual filters (checkboxes) for each field will display all the pivot items regardless of whether the other filter selections currently prevent those items from being shown. This is different that the behavior of AutoFilters which only list the visible subset of all items.

Unfortunately, that's the way PivotTable manual filters are designed. There isn't a setting or simple work around to have the checkboxes shown conditionally.
 
Upvote 0
I'm not aware of anyone trying that. The Object Model doesn't contain any properties or methods for the manual filters, so outside of modifying the Excel source code, I don't think it's possible to code a solution that causes the PivotTable's manual filters to have that behavior. The only coding approaches with any feasibility that I can think of at the moment are:

1. Create filter objects that reside outside of the PivotTable.
2. Modify the PivotCache to exclude records that can't be displayed due to other filters currently applied.

Those approaches would be clunky and difficult to execute and IMO wouldn't provide enough benefit to justify the effort.
Slicers, which became available with xl2010 have some similarities to approach 1. They physically reside outside PivotTables and they show pivot items that can be displayed at the top of the list in a different color than those items that can't be displayed.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top