+ Reply to Thread
Results 1 to 6 of 6

Calculated field for Grand Total

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,056

    Calculated field for Grand Total

    Okay, I can easily do this outside of the pivot, but I'm really interested in learning how to do this through a calculated field. In the attachment I have a pivot. In my columns I have EA Elig, which has two value fields, EA and Non-EA. What I'd like is a calculated field showing EA/SUM(EA+Non-EA). When I try to do it as a calculated field "EA Elig" shows up as a field I can use, but "EA" and "Non-EA" don't. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Nowy Tomysl, Poland
    MS-Off Ver
    2019, O365
    Posts
    398

    Re: Calculated field for Grand Total

    Hello,
    I changed some of Your data layout. See if this solves Your problem
    Attached Files Attached Files

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Calculated field for Grand Total

    Hi,

    What you describe is a calculated item rather than a calculated field, for which the formula
    = EA/( EA+ 'Non-EA')
    will provide the answer. However, adding a calculated item will have some probably undesired side effects as it will be calculated for all available rows, not merely those which have data, and you will therefore see every item combination in your pivot table.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,056

    Re: Calculated field for Grand Total

    Stasinek,
    Apparently we think alike. Yesterday after my post I came to the same solution, but hoped that somebody could come up with a solution that didn't require the data modification.

    XlNitWit,
    Thanks for helping to clarify the problem. Yep, I tried it as a Calculated Item, and it sure didn't work like I wanted.
    Last edited by jomili; 03-28-2017 at 08:57 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Nowy Tomysl, Poland
    MS-Off Ver
    2019, O365
    Posts
    398

    Re: Calculated field for Grand Total

    I see that you have version 2010, so you can leave the data layout unchanged. However, you should use the Power Query and so make changes. The data table after the change should be used to create a PivotTable

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,056

    Re: Calculated field for Grand Total

    Unfortunately we're locked down so I can't load Power Query. However, we're just about to upgrade to 2016, so I'll have it then (and a whole new learning curve to tackle).
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

+ 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. Getting correct grand totals when using calculated field in pivot table
    By stephme55 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-07-2016, 01:02 PM
  2. Pivot Table Calculated Item Field Grand Total Not using Formula
    By gav0101 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-29-2014, 11:46 AM
  3. Calculated field returns incorrect grand total
    By baascore in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-08-2014, 04:07 AM
  4. Replies: 0
    Last Post: 10-24-2013, 10:59 AM
  5. Replies: 0
    Last Post: 09-01-2011, 02:55 PM
  6. Missing Grand Total for a Calculated Field in a Pivot Table
    By Robert Hamilton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2006, 02:20 PM
  7. [SOLVED] Pivot Table Calculated Field (Grand total question)
    By Linda in forum Excel General
    Replies: 5
    Last Post: 08-03-2005, 06:05 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