+ Reply to Thread
Results 1 to 3 of 3

Pivot: Calculating the difference between 2 columns with active value field settings

Hybrid View

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    2

    Pivot: Calculating the difference between 2 columns with active value field settings

    Hi!

    I have a problem where I am trying to calculate the difference between two columns that have the condition "% of Parent Row Total" in the value field settings. I want to get the difference between the two but it uses the underlying values instead of the calculated fields values.

    I have attached an excel here with dummy data to shBook2.xlsxow what i mean.

    Thanks for any help!

    P

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Pivot: Calculating the difference between 2 columns with active value field settings

    I think I may not be understanding. The formula you are using does give the difference between Sum of Data 3 and Sum of Data 2.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Pivot: Calculating the difference between 2 columns with active value field settings

    Here!

    Put this formula in cell E2 and Drag Down.

    =(D2/SUMIF($A$2:$A$16,A2,$D$2:$D$16)-(C2/SUMIF($A$2:$A$16,A2,$C$2:$C$16)))
    Go to change source data on the Pivot Table and Included the added helper column and get it on the Values Area of the Pivot Table

    It will look like this -
    Attached Images Attached Images
    Cheers!
    Deep Dave

+ 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 - Multiple field value settings for 1 field
    By katrina.pak in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-11-2015, 04:07 PM
  2. Replies: 1
    Last Post: 11-27-2013, 07:59 AM
  3. Changing field settings on multiple columns in pivot report...How
    By Wayne in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-06-2006, 08:10 PM
  4. [SOLVED] Pivot table field settings
    By Siew-Ming in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2005, 04:05 PM
  5. Pivot Table Field Settings
    By Michael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 06: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