+ Reply to Thread
Results 1 to 13 of 13

percentage of parent column total - without using the column

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Question percentage of parent column total - without using the column

    Hi,

    i have the following pivot table:

    Pivot 1
    jan/14 feb/14 mrt/14
    row yes no yes no yes no
    1 3 2 3 2 3 2
    2 0 5 3 2 3 2
    total 3 7 6 4 6 4

    Using the function 'show values as % of parent column total', i get the following result:
    for row = 1 and date = jan/14, 60% is the calculation of 3 / ( 3 + 2 ), and so on

    Pivot 2
    jan/14 feb/14 mrt/14
    row yes no yes no yes no
    1 60% 40% 60% 40% 60% 40%
    2 0% 100% 60% 40% 60% 40%
    total 30% 70% 60% 40% 60% 40%

    Is it possible to show the pivot table as pivot table 2, but without the no column, as if the no column was hidden, just as pivot 3
    If the yes value equels 60%, well then it is quite logical that the no value equels 40%...


    Pivot 3

    jan/14 feb/14 mrt/14
    row
    1 60% 60% 60%
    2 0% 60% 60%
    total 30% 60% 60%


    My actual pivot table is quite bigger and complexer, so it would help a lot if i could just 'hide' the no value colum.

    i have uploaded a sample file just if the above is not clear.

    thanks.
    Attached Files Attached Files

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

    Re: percentage of parent column total - without using the column

    do you have powerpivot?
    Josie

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

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: percentage of parent column total - without using the column

    Yes we do.
    Thanx

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

    Re: percentage of parent column total - without using the column

    then you can make the source data into a Table and load it into the data model
    then create 3 measures
    X_Sum: =SUM(Table1[x])
    All_X_Sum: CALCULATE([X_sum],all(Table1[op tijd]))
    Yes_pct: =[X_sum]/[All_X_Sum]

    and just add Yes_Pct to the data area then you can filter the 'op tijd' field to only show yes

  5. #5
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: percentage of parent column total - without using the column

    hi, this doesn't seem to work with me, I can't enter your All_X_Sum formula, error: [X_Sum] cannot be found.
    If I just enter YesPct = SUM(Table1[x]) / CALCULATE([X_sum],all(Table1[op tijd])), I get an circular reference error.
    I don't really understand what I am doing wrong.

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

    Re: percentage of parent column total - without using the column

    you've gotta create this measure first:
    X_Sum: =SUM(Table1[x])

  7. #7
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: percentage of parent column total - without using the column

    Off course, what i did
    However, i got the error

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

    Re: percentage of parent column total - without using the column

    if you created the X_sum measure first you wouldn't get an error that X_sum couldn't be found ;-)
    can you post the revised workbook with the measures you created?

  9. #9
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: percentage of parent column total - without using the column

    enclosed the file, with the errors.
    thnx.
    Attached Files Attached Files

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

    Re: percentage of parent column total - without using the column

    you added calculated columns not measures. are you using excel 2013 or 2010-I get a message to upgrade the model when opening the workbook in 2013?

  11. #11
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: percentage of parent column total - without using the column

    we use excel 2010, don't really know what you mean by measure / column.

  12. #12
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: percentage of parent column total - without using the column

    You need to use the New Measure button on the PowerPivot tab in Excel. I've added Josie's measures and a new pivot table in the attached sample.
    Attached Files Attached Files
    Remember what the dormouse said
    Feed your head

  13. #13
    Registered User
    Join Date
    06-25-2014
    Location
    belgium
    MS-Off Ver
    2013
    Posts
    22

    Re: percentage of parent column total - without using the column

    Alright! thank you, just what i was looking for.
    thnx.

+ 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 showing percentage in Grand total grouped by first column
    By matpj in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-16-2014, 09:47 AM
  2. [SOLVED] Formula for total entries in a column and for percentage of certain value
    By SharpTJ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2013, 09:02 PM
  3. Percentage of total column
    By nulrichster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2011, 07:51 AM
  4. Replies: 0
    Last Post: 09-01-2009, 05:41 AM
  5. [SOLVED] Pivot Table Percentage of Grand Total Column
    By Jacob in forum Excel General
    Replies: 6
    Last Post: 03-08-2006, 01:10 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