+ Reply to Thread
Results 1 to 10 of 10

Sorting pivot table by "show value as"

  1. #1
    Registered User
    Join Date
    03-03-2011
    Location
    The Cloud
    MS-Off Ver
    Excel 2010
    Posts
    5

    Sorting pivot table by "show value as"

    For some reason I've been unable to find any resource related to the following problem:
    I have a pivot table with two columns of spend amounts ($), but have them displayed as "% of the row total" with the "show values as" option. I want to sort the rows from highest to lowest %, but am only able to sort based on highest to lowest $ amount. If anybody has a solution for this it would be greatly appreciated.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sorting pivot table by "show value as"

    I seem to be able to sort (in XL2007.. don't have 2010).

    Can you post a sample file showing the problem?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-03-2011
    Location
    The Cloud
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sorting pivot table by "show value as"

    Thanks for the reply; see attached for example pivot.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sorting pivot table by "show value as"

    I am confused with this sample. What is the issue again?

  5. #5
    Registered User
    Join Date
    03-03-2011
    Location
    The Cloud
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sorting pivot table by "show value as"

    I'm trying to sort column B from greatest to least based on percentage value. It will only sort by the sum of spend ($) instead.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sorting pivot table by "show value as"

    I think I found it...

    Try this:

    Select the dropdown in A4 (next to row labels)
    Select More Sort Options
    then click More Options in the dialogue box
    Uncheck the box for Sort automatically every time the report is updated
    Click Ok
    Click Ok

    Now you should be able to sort as desired.

  7. #7
    Registered User
    Join Date
    03-03-2011
    Location
    The Cloud
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sorting pivot table by "show value as"

    Hmm for a minute there I thought that was solved. That actually works really well, but I have to have the pivot table auto sort each time it is updated by a slicer connection. I tried this scenario and it doesn't look like it will work in that instance. Is there anything else that might work?
    Last edited by xodus52; 03-04-2011 at 02:06 PM.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sorting pivot table by "show value as"

    I am not sure then. I don't have 2010 to test the slicer... but I think the only way might be to create a vba event macro maybe that will temporarily engage/disengage the automatic sort feature from the rows area so the refreshing can happen... but I am not the VBA expert to do it, unfortunately....

  9. #9
    Registered User
    Join Date
    03-03-2011
    Location
    The Cloud
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sorting pivot table by "show value as"

    Yeah I was hoping to not have to get into VBA. This is part of a dash that will be hosted over sharepoint and rendered "thin", so most extra functionality will be stripped out anyways. If anyone else knows a way that this sort function can be accomplished traditionally, feel free to chime in!

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sorting pivot table by "show value as"

    Here is another possibility.

    Add a column (named perhaps Percent) in the source data using formula in D2:

    Please Login or Register  to view this content.
    copied down.

    Then add that column to your pivot table (Sum of Percent)

    Format as Percentage and sort that instead.

    Does that work?
    Attached Files Attached Files
    Last edited by NBVC; 03-04-2011 at 03:01 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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