+ Reply to Thread
Results 1 to 17 of 17

Pivot chart - sort by hidden value?

  1. #1
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Pivot chart - sort by hidden value?

    hi

    new to excel and new to this forum :-)

    i have just started using excel with the goal to visualize some of our firm-data.
    i have therefore read a bit about pivot tables, and have been experimenting a bit.

    WHAT I TRY TO DO
    i try to compare subjects factors to hours used, but setting up two charts.

    PROBLEM
    but i have got a problem (i guess it's quite simple) that i can't solve.

    i have a table that contains
    - subject
    - hours
    - factor

    those data i would like to precent in to charts
    CHART ONE - FACTOR
    - shows the subject
    - sorted by factor
    - shows the factor

    CHART TWO - HOURS
    - shows the subject
    - sorted by factor
    - shows the hours

    i can set up the charts, and sort them as needed - but i can't figure out how to hide the factor-bars in the HOURS table?

    does anyone know how to do that?

    A SECOND PROBLEM
    if there are a lot of subjects, and some of them has a factor of '0', then the subjects are not alway sorted the same way in the two charts.
    to solve this i guess i need to "sort by FACTOR, then by SUBJECT" but is that possible?


    thanks
    jorgensen
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot chart - sort by hidden value?

    for the first question,

    maybe like this.

    just deselect the factor in the pivot graph.

    see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    hi oeldere

    thanks - but then you can't sort by factors - or?

    Jorgensen
    Last edited by Jorgensen; 04-30-2016 at 06:41 AM.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot chart - sort by hidden value?

    Maybe this can be an alternative.

    d2=ROW()-1& " "&INDEX($A$2:$B$8,RANK($B2,$B$2:$B$8),1)

    and after that a pivot graph.

    see the attached file.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot chart - sort by hidden value?

    Please read the forumrules, especialy the ones about crossposting.

    http://www.mrexcel.com/forum/excel-q...e-diagram.html

  6. #6
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    hi oeldere

    i'm very sorry - i wasn't aware of that rule.

    iv'e tried your solution, but it's giving me errors - i guess i just need to keep trying.

    thank you for the kind help.

    jorgensen

  7. #7
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    i have now been experimenting with VBA and two pivottables - and i can sort them ok, but i wonder if it's possible to sort an collumn by using fields from an other pivot table?

    - this way i could sort the pivottable HOURS by using the FACTOR in the FACTOR pivottable - but i guess it's not possible :-/

    thanks
    jorgensen

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot chart - sort by hidden value?

    You did not respond on my alternative in #4.

  9. #9
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    hi oeldere

    my fault - i did not see the "sheet1" in your file - and got confused :-/

    i will look into your solution - and see if i can figure out what you are doing it :-)

    - time for bed now.

    thanks
    jorgensen

  10. #10
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    Hi oeldere

    I'm not sure what your are doing in the sheet you have added, is it possible for you to sort the table "hours", on sheet1 by the factors?

    thanks
    Jorgensen

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot chart - sort by hidden value?

    I try again (and now everthing in 1 sheet).

    See if the result match your expectations.

  12. #12
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    hi oeldere

    i think i get what you do - you create a new label that contains the RANKED number of factor + the name of the subject, and then sort by the label.

    i also need to sort by group - and i think it's getting to complicated for my capabilities / old brain :-(

    i really appreciate your input!

    jorgensen

  13. #13
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    hmm i just tried to create a SORT column that contain a combination of FACTOR + SUBJECT, and used that to sort. it seems to work, but i guess it's not bulletproof as the SORT is sortet as text.

  14. #14
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Pivot chart - sort by hidden value?

    You could plot the Factor on a secondary axis, then set its Fill to no fill, and border to no line, then delete the secondary value axis.

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot chart - sort by hidden value?

    @rorya

    can you please show that in the file of the OP?

  16. #16
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Pivot chart - sort by hidden value?

    Of course.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    04-30-2016
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    9

    Re: Pivot chart - sort by hidden value?

    hi rorya

    that was a simple trick - i wasn't aware that i could move the factor to the secondary axis - this makes it possible to align the two diagrams :-)

    thanks
    jorgensen

+ 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. [SOLVED] Sort Pivot Table Chart
    By Comesummer in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-20-2015, 07:44 PM
  2. Trying to have pivot chart sort first by one field and then another
    By leanne1220 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-18-2015, 10:00 AM
  3. Date sort in pivot table and chart
    By Robert1311 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-17-2014, 02:53 PM
  4. Sort with empty cells in a Pivot Chart
    By maw230 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-13-2014, 10:45 AM
  5. Pivot Chart from table - sort on non-graphed column?
    By njs27 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-31-2013, 04:37 PM
  6. Replies: 3
    Last Post: 05-08-2013, 07:16 AM
  7. [SOLVED] Sort Pivot Table using hidden data field
    By goofy11 in forum Excel General
    Replies: 4
    Last Post: 02-03-2006, 04:15 PM

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