+ Reply to Thread
Results 1 to 14 of 14

Dynamic % Row within a Pivot Table

  1. #1
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Dynamic % Row within a Pivot Table

    I have created a pivot table with a total row at the bottom as well as a total column at the right.
    I need to create a "%" row at the bottom, below the total row, using the total of the individual column divided by the total of the total column.
    Becuase there is a filter for the pivot table this percentage row needs to be dynamic as the number of both rows and columns will change when the filter is changed. Would welcome any advice on how to do this.
    Thanks.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Dynamic % Row within a Pivot Table

    Hi moratufernando,

    I would suggest you to include this row on top of the pivot table instead of bottom and use Subtotal function there. In case of any issue, upload a sample workbook. Thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    Thanks.
    That is an option I had considered and can use.
    However I was thinking of the following scenario.
    The filter I was refering to in my original post is the "Year".
    In the event I move the Year to the Pivot Table and have a subtotal for each year, would it be possible to get the percentage calculated for each yearly subtotal?
    For this reason I was hoping to locate a solution that gives the reult within the Pivot table instead of outside.
    If you have any suggestions to do it within the Pivot table, I am all ears.
    Regards.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Dynamic % Row within a Pivot Table

    okay.. upload a small sample and mention you expected results.. let me give a try to this

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    Thanks.
    Will prepare an extract and upload shortly.
    Please note VB is out of my league so any solution without VB would be preferred.
    Regards.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Dynamic % Row within a Pivot Table

    Sure.. will try

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Dynamic % Row within a Pivot Table

    Hi,

    Have you found this yet?

    http://contextures.com/xlPivot10.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    Pivot % Row.xlsx

    Dear Dilip
    Please see Attached.
    I am trying to get a "%" Row below each Annual Subtotal.

    Thanks.

  9. #9
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    Sorry Marvin, I cannot access the link you sent me.
    Thanks nonetheless.

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

    Re: Dynamic % Row within a Pivot Table

    you can't have it showing just for the years (without an olap table anyway) but you can add the data field again and show it as a % of the entire column
    Josie

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

  11. #11
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    Thanks for that. It does not exactly address my issue but was curious to get it going.
    I added another column and set it as a "% Of" in the "Value Field Settings" box, "Show Values as" tab.
    However in the "Base field" list, I do not see the "total" that is calculated in the pivot table. I only see the fields that are in the original database.
    Last edited by moratufernando; 01-02-2013 at 06:08 PM.

  12. #12
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    ................
    Last edited by moratufernando; 01-02-2013 at 06:09 PM.

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

    Re: Dynamic % Row within a Pivot Table

    use '% of column' not '% of' and another field

  14. #14
    Registered User
    Join Date
    12-17-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Dynamic % Row within a Pivot Table

    Thanks Joseph, I got it going.
    Thanks Marvin, I did manage to get to Contextures.com and from there to Pierrefondes and found something quite useful.

+ 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