+ Reply to Thread
Results 1 to 4 of 4

Pivot Table/Calculated Field Question

  1. #1
    Registered User
    Join Date
    02-15-2008
    Posts
    4

    Pivot Table/Calculated Field Question

    I have attached a simple test file. The data tab has two columns in the pivot range. The third column is _not_ in the pivot range, but is there to show the result I'm trying to get with the pivot.

    The idea is to count the number of people whose entry dates are greater than 2/1/2009. My third data column gives a correct result, but a similar formula in the calculated field of the pivot table gives a completely wrong result (a date), where my goal is to generate a zero, a one, or a sum of zeros and ones.

    It could be a formatting issue, but that would not explain why all the pivot results have the _same_ wrong answer.

    I'm new to PTs and calculated fields, and expect I've made a naive mistake that an expert could easily spot.

    Any help would be appreciated.

    Thanks,
    Art
    Attached Files Attached Files
    Last edited by friedman_art; 02-23-2009 at 03:13 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Pivot Table/Calculated Field Question

    Hi Art,

    I think you're getting incorrect results because your Pivot Table's calculated field ("Adds") is set to check if 'EntryDate' is greater than "DATE(2008,2,1)" instead of "DATE(2009,2,1)". Change that and your pivot data should be correct.

  3. #3
    Registered User
    Join Date
    02-15-2008
    Posts
    4

    Re: Pivot Table/Calculated Field Question

    Paul, thanks for catching my incorrect date. Changing it did help, but I still get dates in the pivot table fields. Now, they are _different_ dates, which is an improvement. Is there a formatting trick needed to simply get the 0's and 1's I need?

    Thanks,
    Art

  4. #4
    Registered User
    Join Date
    02-15-2008
    Posts
    4

    Re: Pivot Table/Calculated Field Question

    Ok, it was a simple formatting fix. Just changed the format of the PT field to number with no decimals. thanks again.

+ 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