+ Reply to Thread
Results 1 to 2 of 2

Pivot Table with Calculated Item Shows Rows with No Data

  1. #1
    Registered User
    Join Date
    10-05-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Pivot Table with Calculated Item Shows Rows with No Data

    Hi all, and thanks for your help in advance.

    I'm having trouble with a calculated item in a pivot table that when created adds records to the pivot table that have no data. Any help would be greatly appreciated.

    My pivot table has the following data:

    Please Login or Register  to view this content.
    I made the column pivot the Type field, with the row pivots the PivotField1 and PivotField2 fields. I also made my data the sum of the Data field. The resulting pivot table looks like this:

    Please Login or Register  to view this content.
    So far, so good. I then try to add a calculated item to the Type field, named Three, which is defined as "= One * Two". I would then expect the following:

    Please Login or Register  to view this content.
    Unfortunately, I get the following:

    Please Login or Register  to view this content.
    Is there any way to remove the rows with no data? I've tried using an if function to check if the value is > 0, but that doesn't seem to help.

    Thanks again for your assistance.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pivot Table with Calculated Item Shows Rows with No Data

    Not AFAIK - in XL2007 you can apply Filters to "hide" the 0 values but they still compute. I always think of this type of thing along the lines of an OLAP Cube - ie the PT will compute and return the Calculated Item for all permutations based on source data. If nec. I guess you could use VBA to hide the Rows but the point remains the calcs are still taking place.

    (Edit: I guess the most obvious point is that really if One/Two were separate columns @ source you could use a Calculated Field rather than Item which would not generate the surplus records)
    Last edited by DonkeyOte; 10-06-2009 at 04:41 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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