+ Reply to Thread
Results 1 to 9 of 9

Using a Calculated Field as a Pivot Filter

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Using a Calculated Field as a Pivot Filter

    I have a data table that has a column called "Received Date" (which includes Hour & Min). Is it possible to create a calculated field using this coulmn to get the "Received Year" (=Year(Received date)) and "Received Month" and use these fields as a filter for the Pivot Table? Any assitance much appreciated. Thanks.
    Last edited by moratufernando; 01-02-2013 at 12:45 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using a Calculated Field as a Pivot Filter

    Is this what you're up to.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using a Calculated Field as a Pivot Filter

    Thank you for your response.
    Yes I understand that additional columns can be created and such columns used for the Pivot table.
    However as the data table is regularly updated via a download from a CRM system, I would like to avoid that.
    In the Options toolbar appearing under Pivottable Tools (you need to create a pivot table to see this), there is a "Formulas" button and a "Calculated field" option under that. However when I create a new field within the Pivot table, Excel does not allow me to use that field as a filter. I was trying to see whether there was a way this could be made possible.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using a Calculated Field as a Pivot Filter

    If you have to do this often, you can use VBA to add this formula in the table.

  5. #5
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using a Calculated Field as a Pivot Filter

    Thanks, I'll follow that up. I'll have to get help asVBA is out of my league.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using a Calculated Field as a Pivot Filter

    Maybe you can post an excel example, without confidentional information.

    Add also the desired result.

    Then I will take a look, if I can help you.

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Using a Calculated Field as a Pivot Filter

    if it's a real date field add it to the row field area then right-click and group it by year and month which will create an additional field for the year. you can then add either or both fields to the filter area
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  8. #8
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using a Calculated Field as a Pivot Filter

    Thank you very mch for the offer. I will first try the suggestion of JosephP and if that does not deliver what I need I will take you up n your offer. Much appreciated.

  9. #9
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Using a Calculated Field as a Pivot Filter

    Thanks. I will try this and get back to you. Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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