Re: Pivot Table - Grouped Dates - Format

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Immediately after you group the dates, they should be in chronological order. If you sort them later, they'll sort in text order.

You could regroup them, and they should go back to date order.

PlanoMax wrote:
Hi All,

I have a grouped pivot by date. Works fine except for the format of
the date doesn't allow sorting in the way that I need.

The data has the dates in the format: 4/17/2006 14:21

After grouping in the pivot on that field by day (to remove the time
portion) I get: 10-Apr


Sorting the pivot gives:

10-Apr
10-Mar
11-Apr
12-Apr
13-Apr
13-Mar
14-Apr
14-Mar
15-Apr
15-Mar
16-Mar
17-Apr


Rather than by year/month/day. I tried changing the field format in
the pivot and it doesn't do anything at all to how the format in the
pivot looks? I need the pivot data to sort as actual days are in
calendar order. In my example data, it would have all March data
followed by April data rather than the tenth day of either month
followed by the eleventh day of either month etc...

Any ideas? Thanks for any help in advance.


.



Relevant Pages

  • Re: In which cases/problems is Prolog faster than Java?
    ... The overhead for parallelism can be prohibitive for small datasets, but once we get to sorting datasets that have a size ... comment is 'Multi-threaded version of the quick sort algorithm.', ... partition(Rest, Pivot, Smaller0, Bigger0), ... qsort(Bigger0, Acc, Bigger, Threads2) ...
    (comp.lang.prolog)
  • Re: Sorting Grouped Dates in Pivot Table
    ... You could ungroup the dates, sort, then regroup them, and the order ... > Having problems sorting grouped dates in a pivot table report. ...
    (microsoft.public.excel)
  • Re: sorting columns
    ... Pivot tables are more like Cross ... If you plan on creating your custom sort code, you many want to think about ... First, if you ever had a course on programming dealing with sorting, there's ... sort objects within sort objects to create you different layers of sort ...
    (microsoft.public.excel.programming)
  • Re: Sorting columns in a Transform/crosstab query
    ... Hash: SHA1 ... I really don't recommend changing the table structure just to get a ... sort the column headers by project name within a project type. ... You can't sort the PIVOT values and it doesn't matter if the source is ...
    (microsoft.public.access.queries)
  • Re: Sorting columns in a Transform/crosstab query
    ... Hash: SHA1 ... sort the column headers by project name within a project type. ... You can't sort the PIVOT values and it doesn't matter if the source is ...
    (microsoft.public.access.queries)