+ Reply to Thread
Results 1 to 4 of 4

Wrong sum on subitems in my calculated field (pivot table)

  1. #1
    Registered User
    Join Date
    05-03-2019
    Location
    Br
    MS-Off Ver
    2016
    Posts
    2

    Arrow Wrong sum on subitems in my calculated field (pivot table)

    The sum of subitems should be 76,6% (20% + 23,3% + 10% + 23,3%) and im getting 83,3% for some reason.

    3qjPqUS.png

    My pivot table has two calculated fields:

    -> Aderência:
    =IFERROR(real/possivel;0)

    -> Resultado:
    = Aderência * Peso

    I'm not sure why the calculated field "resultado" isn't summing right

    Anyone can help me ?
    Attached Files Attached Files
    Last edited by laranayrana; 05-03-2019 at 08:52 PM. Reason: Attached plan

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

    Re: Wrong sum on subitems in my calculated field (pivot table)

    Hello laranayrana and Welcome to Excel Forum.
    I can attempt to explain/illustrate why the result is displaying as it is.
    If you put the formula for Aderencia in the data table and then use it as a value field you see (Sheet2) that the subtotal is .833333
    Correspondingly the subtotal for Peso_2 is 1
    The value being displayed is the product of these two numbers (as per the calculated field formula), which are unseen in the pivot table on the dinamica sheet.
    Attached Files Attached Files
    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
    05-03-2019
    Location
    Br
    MS-Off Ver
    2016
    Posts
    2

    Re: Wrong sum on subitems in my calculated field (pivot table)

    Quote Originally Posted by JeteMc View Post
    Hello laranayrana and Welcome to Excel Forum.
    I can attempt to explain/illustrate why the result is displaying as it is.
    If you put the formula for Aderencia in the data table and then use it as a value field you see (Sheet2) that the subtotal is .833333
    Correspondingly the subtotal for Peso_2 is 1
    The value being displayed is the product of these two numbers (as per the calculated field formula), which are unseen in the pivot table on the dinamica sheet.
    Oh, thank you for that. I understand it!

    To get the way i want it the results i should try another approach to data, right?

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

    Re: Wrong sum on subitems in my calculated field (pivot table)

    In the attached file another column (Aderencia*Peso_2) has been added to the data table.
    The dinamica pivot table now references that column instead of using a calculated field.
    Note that the percentages are different from what was displayed previous, however when the data is checked they seem to be correct.
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 01-15-2019, 08:54 PM
  2. Issue with Calculated filed in Pivot Table (wrong output calculated)
    By martinrt in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-18-2018, 03:11 PM
  3. Pivot Table: Calculated Field based on Running Total Field
    By EvolvingMonkey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 06:27 AM
  4. Replies: 0
    Last Post: 08-15-2016, 02:07 PM
  5. [SOLVED] A pivot table field calculated using other field values as fields?
    By chrisf78 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-07-2015, 03:08 AM
  6. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  7. [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

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