How to sort time column by value instead of alphabetically

Posted by Turch on Super User See other posts from Super User or by Turch
Published on 2013-10-17T21:18:25Z Indexed on 2013/10/17 22:00 UTC
Read the original article Hit count: 202

I'm creating a pivot table by connecting to an SSAS tabular model (Data -> From Other Sources -> From Analysis Services) .

The model has a "time" column that I want to sort by. The default (database) sorting is earliest to latest:

Default sorting

When I click the triangle next to 'Row Labels' and select "Sort A to Z", I get alphabetically sorted times:

enter image description here

How can I get the times to sort by time? Changing the number format from "General" to "Time" does nothing. The times aren't stored as text either - the data type of the column in the SSAS model is Auto (Date)

© Super User or respective owner

Related posts about microsoft-excel

Related posts about pivot-table