Consulting

Results 1 to 5 of 5

Thread: Solved: Percent of Row Group in Pivot Table?

  1. #1
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location

    Solved: Percent of Row Group in Pivot Table?

    I can do what I need to do with VBA or with formulas, but it'd be a lot easier if I can configure the PT and let Refresh do it

    I added a 'Sum Of' data field and a '% of Total' data field

    I'd like to use a computed PT field to calculate the % that each line is within its group, or any other method

    Any help / ideas appreciated

    Paul
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Paul,

    Just drag Field 4 into the value pane again; right-click that item in the pivot; select 'Value Field Settings'; select the 'Show Values As' tab' and select '% of Parent Row Total' from the dropdown.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    Ah, ha - thanks,

    The only concern that would probably raise questions is that the Subtotal for the '% of Parent Row Total' doesn't add to 100%; it's the same as the '% of Total' for that row value.

    Any way to fix that issue by making it = 100% or just hiding it altogeather??

    Otherwise, this is still way better than the manual worksheet formulas I had been using

    Paul
    Attached Files Attached Files

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Not really Paul as that total is aggregating all items under the parent row, and for the Field 1 items, the parent is the grand total, so you are seeing that as the percentage of the grand total.

    You could get rid of subtotals for the Field 1 level, select say AAA, right-click and click the Subtotal 'Field 1' item. But, that will remove the subtotals for all columns at that level.

    Another way is to set the font colour the same as your cell background, but that is not so good with dynamic pivots.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    Sort of expected that

    Thanks

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •