+ Reply to Thread
Results 1 to 4 of 4

Pivot Table: Filter Issues & Row/Column size

  1. #1
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    259

    Pivot Table: Filter Issues & Row/Column size

    Hello Everyone,

    I've recently delved into the realm of pivot tables and I feel I have the relative hang of them.

    Say I have the following categories: Town, Program, Activity and the values are time spent.

    I have a pivot table that has Town name as columns and activities grouped by program as rows.

    Here are issues I'm encountering:

    1. If I use a filter on any of the categories to remove blanks or zeros, the pivot will only update existing categories and not add new ones automatically.

    For instance, if town A, B, and D all currently have data and I apply a filter to remove (blank), town C will not show up in the pivot upon refresh when data is added for it. This is a problem because it means I can't have a clean pivot table without manually selecting that yes, I now want Town C to be part of the filter as well.

    I should clarify that I've added the filter from the "choose fields to add to report" menu instead of adding fields to the "filters" area. Would this make a difference?

    It is not possible to not have blanks in the data source for this file (as not all lines will be used when users are entering data).

    2. When a pivot does add a new program or activity that now has data entered, it resets the row size. Since the pivot is part of a document where other things are going on, this is less than ideal. Does anyone have a handy macro to update the pivot on the activesheet and keep the rows and columns it occupies the a predetermined size?

    Thank you all!
    Last edited by liquidmettle; 11-19-2015 at 02:57 PM.

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Pivot Table: Filter Issues & Row/Column size

    1. Right-click on an entry in the pivot table for the field in question (Ex. right click on town A), and select "field settings". Then select the option "Include New Items in Manual Filter"
    2. You can right click on a pivot table, and select "Pivot table options" and deselect "Autofit column widths on update". Not sure if that will fix the row size reset. I am surprised it is doing that. I would suggest having your pivot table on its own separate tab.
    Please click the * icon below if I have helped.

  3. #3
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    259

    Re: Pivot Table: Filter Issues & Row/Column size

    Hi Melvin,

    Your answer to part 1 was spot on!

    For part 2, I have a total of 12 pivot tables- one for each month of data. Each pivot is on the sheet where data for its respective is entered. This layout works well for my purposes except for the resizing of the rows.

    I have all rows that are relevant set to 35 height. The rows the pivot table occupies change to 21 height when updated (I know there are macros to set a specific width/height, and I can easily select a big enough range that the pivot won't over-extend). Really I was curious if there was an easy way to tell the PT not to resize its rows (much like charts can be told to ignore row and column size changes).

    I had already unticked the autofit column width on updates in my own exploring, but that you for the suggestion just the same!

    I had thought about a sheet for just the pivot tables but that might be a headache planning for their maximum possible expansions.

    Let me ask you this: If I did put them all on their own sheet, is it possible to write macro to print a specific pivot table (and had it fit the paper or a specific area?). If I can do this, I can just hide the tab with the pivots and allow the user to print or PDF the table they want to see.

    Thoughts?

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Pivot Table: Filter Issues & Row/Column size

    You probably could start a new post, asking specifically for a macro that changes row size to "x".
    Why not have one tab, with one pivot table, and a slicer to filter for each month? I suppose you can't do that if your raw data is in different sources. The best long term solution is to enter your data in one table, but...
    Perhaps just asking for a macro is your best bet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot table: Filter column with multiple criteria
    By tonelot in forum Excel General
    Replies: 8
    Last Post: 06-15-2015, 08:38 AM
  2. Replies: 0
    Last Post: 11-12-2014, 01:16 AM
  3. how to filter a clumn in Pivot table and effects on other column
    By hamidrezaxy in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-20-2013, 10:03 AM
  4. Replies: 5
    Last Post: 01-06-2012, 04:35 PM
  5. Replies: 0
    Last Post: 09-02-2010, 09:22 AM
  6. Filter Pivot table by another column - how?
    By Vadim Rapp in forum Excel General
    Replies: 0
    Last Post: 08-12-2005, 03:05 PM
  7. Replies: 1
    Last Post: 01-04-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1