+ Reply to Thread
Results 1 to 13 of 13

Sipmle pivot table won't sort

  1. #1
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Sipmle pivot table won't sort

    Hi,
    I have a simple pivot table:

    source data
    ID name date
    1 name1 12.1.2013
    2 name2 14.1.2013
    3 name3 13.1.2013

    My Pivot table is only meant for sorting (filetring etc.) the data according to the date. There are no "values".

    Desired result
    ID name date
    1 name1 12.1.2013
    3 name3 13.1.2013
    2 name2 14.1.2013

    But it won't work. The button indicates a sorted column, but the order is still 1,2,3 instead of 1,3,2.

    The source data "date" column is formatted as date.
    Excel 2010.

    Thanks for any suggestions.

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

    Re: Sipmle pivot table won't sort

    move the date column to the first field?
    Josie

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

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sipmle pivot table won't sort

    Hi,

    Is it an option to move the Date field to be the first item in the PT Row labels?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sipmle pivot table won't sort

    HI Bristly,

    Suggest you to look into below thread to get an idea.. thanks.


    http://www.excelforum.com/excel-gene...el-2007-a.html


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  5. #5
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Sipmle pivot table won't sort

    I moved the column and it worked! I don't get the logic behind this, but I don't care.
    Thank you guys!

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sipmle pivot table won't sort

    As per my observation, any pivot column sorting depends on left column

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Sipmle pivot table won't sort

    Ok, this logic is simple . But not really obvious. I mean, the sort option should be grayed-out in other columns. Or rather should not (current state) and should sort .

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sipmle pivot table won't sort

    This can be a Nice feedback to Microsoft... I hope this thread will be looked by some one from Excel Development team


    Regards,
    DILIPandey
    <click on below * if this helps>

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

    Re: Sipmle pivot table won't sort

    won't happen-makes no sense if you think about what a pivot table does. you can only sort fields within their parent fields otherwise the grouping and aggregation which is the only purpose of a pivot table would not work properly

  10. #10
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Sipmle pivot table won't sort

    1) Of course, some sort combinations do not make sense. But then I'd expect the PT to make the rules more obvious. Columns sholudn't be marked as sorted if there is something preventig them from sorting. The blocking should rather be overriden by the latter choice or somehow explictely reffered to, so that it can be removed manually.

    2) In my case I use the PT as dynamic table of ten bigest clients sorted according various parametres. It may not be what PT were intended for, but I think it's a clear solution. I think, it wouldn't do any harm to the original PT purpose if such a top 10 table was arbitrarily soratble.

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

    Re: Sipmle pivot table won't sort

    but you can sort subordinate fields within the parent fields so it doesn't make sense to block the sorting options. nor can you really expect pivot table behavior to alter based on how you are using it ;-)

  12. #12
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sipmle pivot table won't sort

    Hi bristly, I already said :-
    This can be a Nice feedback to Microsoft... I hope this thread will be looked by some one from Excel Development team


    Regards,
    DILIPandey
    <click on below * if this helps>

  13. #13
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Sipmle pivot table won't sort

    You're right. In my case the date column actually was sorted, only within the parent field. I didn't tealize that. My bad. And my apologies to PT logic . Thanks.

+ 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