+ Reply to Thread
Results 1 to 3 of 3

Subtotal Calculated Item In Pivot table Incorrect

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Subtotal Calculated Item In Pivot table Incorrect

    Hi Everyone,

    I've exhausted all of my knowledge on trying to find a solution to this and hoping someone else has a workaround. The attached data is only fake data but I have thousands of rows of data to manipulate and I need to find an answer. I've google searched for days and still cannot find a solution.

    I cannot seem to figure out how to address the subtotal error with calculated fields in a pivot table when the calculation is a percent. See image below.
    BU (Multiple Items)

    Sum of Amount Year Month
    2017 2017 Total 2018 2018 Total Grand Total
    Metric Product 1 2 1 2
    Sales Apples $15,580 $25,420 $41,000 $16,047 $28,700 $44,747 $85,747
    Peach $32,185 $18,450 $50,635 $33,231 $21,771 $55,002 $105,637
    Sales Total $47,765 $43,870 $91,635 $49,278 $50,471 $99,749 $191,384
    COM Apples $6,090 $6,090 $12,180 $8,242 $6,273 $14,515 $26,695
    Peach $15,225 $7,105 $22,330 $21,680 $14,332 $36,012 $58,342
    COM Total $21,315 $13,195 $34,510 $29,922 $20,605 $50,527 $85,037
    GP$ Apples $9,490 $19,330 $28,820 $7,806 $22,427 $30,233 $59,053
    Peach $16,960 $11,345 $28,305 $11,550 $7,439 $18,989 $47,294
    GP$ Total $26,450 $30,675 $57,125 $19,356 $29,867 $49,222 $106,347
    GP% Apples 60.9% 76.0% 137.0% 48.6% 78.1% 126.8% 263.7%
    Peach 52.7% 61.5% 114.2% 34.8% 34.2% 68.9% 183.1%
    GP% Total 113.6% 137.5% 251.1% 83.4% 112.3% 195.7% 446.9%
    Grand Total 95531.13607 87741.37533 183272.5114 98556.63398 100943.1231 199499.7571 382772.2685

    GP total for Apples 70%
    GP total for Peaches 56%
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Subtotal Calculated Item In Pivot table Incorrect

    This may help, providing the Pivot Table isn't going to be expanding/contracting vertically.
    The range K15:P17 is populated using: =K12/K6
    The format painter is used to copy formatting from the pivot table.
    Number formatting is applied to display values as percents with one decimal.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    02-20-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Subtotal Calculated Item In Pivot table Incorrect

    Thank you so much for your response.

    Unfortunately, it will expand because I have to add in the remaining pieces of the P&L under GP% and it does the same thing with NOP%. I am just shocked excel doesn't have a solution to this yet. Would power pivot solve this issue?

    Thanks again.


+ 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. Pivot table calculated item
    By Mosesdeen in forum Excel General
    Replies: 1
    Last Post: 09-15-2017, 02:39 PM
  2. Calculated Item in Pivot table
    By Centre13 in forum Excel General
    Replies: 5
    Last Post: 03-04-2014, 10:17 AM
  3. [SOLVED] Grand Total of Calculated Items in a Pivot Table Incorrect
    By drstrings in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-11-2013, 11:57 AM
  4. Add calculated item to pivot table
    By tony0710 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-08-2009, 10:10 AM
  5. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM
  6. [SOLVED] Totals of calculated field in pivot table give incorrect results
    By Jake in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2006, 02:20 PM
  7. Pivot Table with calculated Item
    By Greg Doucette in forum Excel General
    Replies: 0
    Last Post: 04-12-2005, 02:06 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