+ Reply to Thread
Results 1 to 4 of 4

Pivot Table - calculate the sum of 2 columns and display value as % of row total

  1. #1
    Registered User
    Join Date
    12-02-2019
    Location
    United Kingdom
    MS-Off Ver
    2013
    Posts
    7

    Question Pivot Table - calculate the sum of 2 columns and display value as % of row total

    I am looking to produce a Pivot Chart so am currently pulling together the Pivot Table. However, I have encountered a problem which I'm hoping there is a straightforward solution to. I have attached a simplistic example of my data.

    I want to be able to SUM the values of 'Pass' and 'Pass (Minor Error)' for each row and then display this value as a % of the row total. I.e. February would be (3+1)/5 = 80%. I hoped to achieve this using the 'Calculated Item' function but it appears you cannot do this when dates have been grouped like they have in my Pivot Table.

    Any assistance would be greatly appreciated. Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Pivot Table - calculate the sum of 2 columns and display value as % of row total

    You can group the two columns then " show values as % of Total rows" ( I used the Tabular form)
    Is this what you need ?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-02-2019
    Location
    United Kingdom
    MS-Off Ver
    2013
    Posts
    7

    Re: Pivot Table - calculate the sum of 2 columns and display value as % of row total

    Quote Originally Posted by Pepe Le Mokko View Post
    You can group the two columns then " show values as % of Total rows" ( I used the Tabular form)
    Is this what you need ?
    That should do the trick. Please excuse my lack of basic knowledge here (quite new to Pivots) - how do I 'group' the two columns? The 'group' option seems to be greyed out when I'm selecting fields/columns.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Pivot Table - calculate the sum of 2 columns and display value as % of row total

    First I changed the layout to tabular form ( don't know if it has to)
    Then select the two "pass fields" ( highlight the two field column titles keeping the left mouse button down)
    Right-click and select " Group". Now you have a new group ( click on the small square with - before the word "Group" to group the fields)
    Right click in a row in the new group and select "Summarize values as" and check "%of Total Row"

    More on grouping and PT's at https://www.contextures.com/xlPivot07.html

+ 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. Replies: 7
    Last Post: 02-27-2017, 07:41 AM
  2. Replies: 6
    Last Post: 09-29-2015, 08:44 PM
  3. Pivot table display both % of Row total and No Calculation - SOLVED
    By Tescatlipoca in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-28-2014, 10:45 AM
  4. Replies: 1
    Last Post: 01-22-2012, 01:06 AM
  5. How to calculate a special total on a Pivot Table
    By ZZZINSUN in forum Excel General
    Replies: 2
    Last Post: 09-16-2011, 06:23 PM
  6. Pivot table - not to display 0 in grand total
    By Harrold in forum Excel General
    Replies: 4
    Last Post: 06-24-2011, 08:58 AM
  7. Display format for Total Column of Pivot Table
    By PP in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2005, 01:05 AM

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