+ Reply to Thread
Results 1 to 5 of 5

Different kinds of subtotals in Pivot Tables (Excel)

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Different kinds of subtotals in Pivot Tables (Excel)

    I would appreciate your support to solve a challenge with pivot tables...

    I have the following table:

    PROGRAM PROJECT TYPE VALUE
    P1 Project 1.1 RISK 1 8
    P1 Project 1.1 RISK 2 1,94
    P1 Project 1.1 ISSUE 1 10,10
    P1 Project 1.1 ISSUE 2 5
    P1 Project 1.2 RISK 3 4
    P1 Project 1.2 RISK 2 3,1
    P1 Project 1.2 ISSUE 1 7,7
    P1 Project 1.2 ISSUE 2 8,1
    ....

    I expect that the pivot table to summarize this data by program showing the AVERAGE as follows:

    PROGRAM RISK AVERAGE ISSUE AVERAGE
    P1 4,26 7,72

    Is it possible with a single pivot table?

    Any idea how to implement it?

    Thank you!

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Different kinds of subtotals in Pivot Tables (Excel)

    the easiest way would be to add a new column to the source table returning either RISK or ISSUE for each row and use that as a column field
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Different kinds of subtotals in Pivot Tables (Excel)

    Quote Originally Posted by JosephP View Post
    the easiest way would be to add a new column to the source table returning either RISK or ISSUE for each row and use that as a column field
    Hi Joseph,

    As always, thanks for your support!

    I did what you suggested but still have no idea how to get it done.
    I even tried to create the pivot table but I am stuck.

    Your support would be appreciated!

    Thanks

    Sample.xlsx

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Different kinds of subtotals in Pivot Tables (Excel)

    you cannot have a sum and an average in the same field. you would have to add the weighted value field to the data area again and change the summary function to average

  5. #5
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Different kinds of subtotals in Pivot Tables (Excel)

    I have implemented via VBA and it is now working fine.
    Basically I went through all pivot table items and summed up their values and how many times they appear.
    At the end divided both values and summarized them by program.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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