Focal Point
I want Sorting Order of Month Names as per as Calendar

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6131048561

April 30, 2006, 05:31 AM
kalyanswarna
I want Sorting Order of Month Names as per as Calendar
Hi All
i Have Some Problem in my Graph Sorting,my X-Axis Label Names are Month Names .these are coming from database in a Calendar order. but in my report lables are showing in Alphabetical Order.i Developed the chart from StoredProcedure.in the Result of SP Month Names Are in Calendar Order.Coming to my Chart These are Changing into Alphabetical Order Is there any Solution to Overcome this Problem.

Please Give me Example for this problem


Thanks,
Kalyan.S

This message has been edited. Last edited by: kalyanswarna,
May 01, 2006, 11:56 AM
Prarie
Take a look at this post.

https://forums.informationbuilders.com/eve/forums/a/...511068331#4511068331


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
see if this code helps.

TABLE FILE CAR
SUM SALES
ACROSS COUNTRY AS ''
COLUMNS JAPAN AND ENGLAND AND 'W GERMANY' AND FRANCE AND ITALY
-*ACROSS COUNTRY
-*ACROSS FISCAL_MONTH AS ''
-*COLUMNS Jan AND Feb AND Mar AND Apr AND May
-*AND Jun AND Jul AND Aug AND Sep AND Oct AND
-*Nov AND Dec
END


WF 8 version 8.2.04. Windows.
In focus since 1990.
Sort on a month number first,e.g.

DEFINE FILE MONTHS
MTHNUM/I2= IF MTH EQ 'JAN' THEN 01 ELSE
IF MTH EQ 'FEB' THEN 02 ELSE
IF MTH EQ 'MAR' THEN 03 ELSE
...
...
...
END

TABLE FILE MONTHS
SUM CARS
BY MTHNUM NOPRINT
BY MTH
END