+ Reply to Thread
Results 1 to 4 of 4

Wrong Row total Calculation in a Calculated Item Field

  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    9

    Wrong Row total Calculation in a Calculated Item Field

    Hi,

    I have a question about a calculated field item (within a pivottable), where the formula is defined as the %difference ((yearnew-yearold)/yearold)) between two other items(non-calculated items). This works good for the per-month calculations, 12 months in a row.

    However, the GRAND TOTAL ROW of this item sums-up all the percentages, where of course I want the calculation of this total be the %difference of the GRAND-ROW-TOTALS of the two other calculated items. See the example in the attachments.

    Thanks!
    Attached Files Attached Files
    Last edited by DaanDean; 11-18-2015 at 07:44 AM.

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

    Re: Wrong Row total Calculation in a Calculated Item Field

    Hello,
    I've added a new column of data (see in sheet date). The formula, which calculates the difference between 2015 and 2014 is in the sheet "Formulas in PT"
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-06-2015
    Location
    Rotterdam, Netherlands
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Wrong Row total Calculation in a Calculated Item Field

    Hi Stasinek,

    First of all, thank you for the effort. It really looks great and obviously the calculations do work now. However, the next problem is that the source data (like the data in sheet1, but without the extra column) will be reguarly updated. The pivottable than automatically will update the other months and so on. Even the years will eventually differ.

    is this possible withouth the artifically created column? Or should a VBA be created to autom. creat the extra column? (and what iff years differ)

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

    Re: Wrong Row total Calculation in a Calculated Item Field

    To me it can be done using the Power Query that will fetch data from your data table. Have you installed add-Power Query?
    Last edited by stasinek; 11-18-2015 at 03:22 PM.

+ 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. Calculated Field or Item
    By MarBoTJ in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-28-2015, 02:36 AM
  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. Replies: 0
    Last Post: 10-24-2013, 10:59 AM
  4. Replies: 1
    Last Post: 12-21-2012, 05:40 AM
  5. Replies: 2
    Last Post: 03-06-2009, 11:49 AM
  6. [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
  7. [SOLVED] Pivot Table Calculated Item-What am I doing wrong?
    By SamBayer1957 in forum Excel General
    Replies: 1
    Last Post: 08-11-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