Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross Tab Sorting Columns

Status
Not open for further replies.

dgillz

Instructor
Mar 2, 2001
10,038
US
I have little experience with Cross Tab reports.

I inherited one with month names as columns. But the sort is April, August, December, etc. - Alphabetic sort. How do I get this to sort as January, February, March, etc.?

Macola and Sage 50/Sage 100 Consultant

Check out our Macola tools:
 
Try this:

1. Create a month group using something like this following formula:
Code:
ToText(Month({MyTable.DateField}), "00") + "-" + ToText({MyTable.DateField}, "MMMM")

2. Use this formula as the column. It will sort correctly by month number instead of by month name.

3. If you want to show just the month name without month number in the column header, right-click on the header object and select Column Options >> Group Options and go to the Options tab. Check "Customize Group Name Field" and use this formula for the group name:
Code:
ToText({MyTable.DateField}, "MMMM")

-Dell

Associate Director, Data & Analytics
Protiviti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top