• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

Why does my pivot table column filter show values which aren't in the source data ?

Hi,
I created a pivot table from source data containing names of towns. The column filter showed the list of towns available in the data. I then changed the source data and replaced the towns with new towns.
However, the pivot table filter shows not only the new town names but also the old ones (even though they aren't in the source data).
I've tried a Refresh but the names are still in the filter list.
How do I remove these inappropriate towns from the filter list ?
Thanks
Toco
0
Tocogroup
Asked:
Tocogroup
  • 3
  • 3
  • 3
  • +1
1 Solution
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

drag the pivot table field that shows old items out of the pivot table.

Refresh the pivot table.

drag the field back into the pivot table.

Now the old items should be gone.

cheers, teylyn
0
 
TocogroupAuthor Commented:
Interesting. I tried your method but it didn't work. The towns still appear. I tried rebuilding the pivot table. Still didn't work.

So I copied the data sheet to a new workbook and rebuilt. Works absolutely fine !

I can't understand this as it would be a bit of an inconvenience having to rebuild a workbook each time.

Any further ideas ?
0
 
Rory ArchibaldCommented:
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
TocogroupAuthor Commented:
Thanks Rorya,
A useful reference.
The problem maybe a links one within the current workbook which has seen many modifications. When I create a separate workbook then I don't have the problem.
Thanks for your help.
0
 
Rory ArchibaldCommented:
That's because the old data was never there. If you turn off the option in the pivot table, you won't have the issue again.
0
 
dlmilleCommented:
Try PivotPower -

You need Pivot Power freeware:

http://www.contextures.com/xlPivotAddin.html

Pivot Power - I've used for a few years - works great!  You can change all columns from sum to average, and several other operations as well!

Under Pivot Items you have an option to clear old items and the code runs to do just that.  I used to have my own macros to do this stuff, but this addin is always there for me, now.

Enjoy - I do!

Dave
0
 
dlmilleCommented:
Here's one more tip:  Note Excel 2007  Change Retain Items Setting section:  http://www.contextures.com/xlpivot04.html

Also there are macros you can use to maintain your pivot table as well.

Again, I start with pivot power and 80% of my needs are met, but you can use these macros to help you as well.

Don't think you need to recreate the pivottable unless its gotten corrupt.

Dave
0
 
Rory ArchibaldCommented:
Dave,
That's the same link I posted earlier. ;)
Rory
0
 
TocogroupAuthor Commented:
Thanks for the tip Dave.

Thanks for your solution Rorya.
0
 
dlmilleCommented:
@Rorya - on reflection, yes - I was providing Pivot power then thought of the other one and didn't check to see if it had been provided.

I use Pivot Power and its better as an add-in I believe, than separate user-cared-for macro...

lol,

Dave
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
  • 3
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now