+ Reply to Thread
Results 1 to 2 of 2

Performing Calculations on One Column in Pivot Table

  1. #1
    Registered User
    Join Date
    01-25-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1

    Exclamation Performing Calculations on One Column in Pivot Table

    Hi everyone,

    I am having difficulties trying to perform calculations to a particular column within my pivot table. As seen in the picture, I would like to embed additional columns to the right of the PT so that it calculates the difference of "Jan 2019" to the previous month, "Jan" compared to the MAX of the entire row, and "Jan" compared to the AVERAGE of the past 12 months.

    I have tried using "Calculated Fields", but it seems like there are limitations to this function - it asks me calculate the whole field rather than allowing me to select and perform calculation on a particular column ("Jan"). I also tried clicking "Calculated Items," but it pops up an error message saying that my report field is grouped, thus cannot calculate - each of the months aggregates multiple days of data.

    I also tried to do calculation outside of the PT by disabling GETPIVOTDATA, so that I can reference the cells in the PT. However, the calculation isn't dynamic - the added columns won't automatically expand/contract whenever new data is added into the PT.

    Is there a way to add these calculation within the PT, so that the calculation is dynamic?
    Capture.PNG
    Much thanks to everyone.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Performing Calculations on One Column in Pivot Table

    I am fairly certain that this cannot be done within the pivot table. There might be a way to play with the source data to get some helper columns to do the heavy lifting. I'd have to see the data layout for that.

    There is another option that I use with one of my reports and that is to use VBA to figure out the boundaries of the pivot table and then insert the appropriate formulas in the right cells - or just outright do the calculations.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Performing multiple calculations
    By halsall555 in forum Excel General
    Replies: 1
    Last Post: 10-13-2013, 12:08 PM
  2. Replies: 5
    Last Post: 05-02-2012, 02:26 PM
  3. populating the cells by performing calculations.
    By expert40 in forum Excel General
    Replies: 1
    Last Post: 02-18-2012, 07:48 AM
  4. Excel 2007 : Performing calculations in cells
    By morris_k in forum Excel General
    Replies: 2
    Last Post: 01-28-2012, 12:37 PM
  5. Performing calculations on a string of text
    By mljs54 in forum Excel General
    Replies: 5
    Last Post: 09-26-2011, 08:10 PM
  6. Performing operations with Pivot Table data
    By agoir in forum Excel General
    Replies: 0
    Last Post: 07-28-2011, 04:51 PM
  7. Performing calculations on arrays...
    By a303 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2007, 12:40 AM
  8. [SOLVED] Pivot table - arranging data appropriately before performing pivot
    By Ben123 in forum Excel General
    Replies: 0
    Last Post: 04-11-2006, 10:45 AM

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