Focal Point
Across Month/Day in Graph

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

April 24, 2007, 11:50 AM
LEX-IA
Across Month/Day in Graph
Hello Hello,

I'm working on a graph where the dates have to be displayed across Month/Day (i.e May19). I used a define to remove the year. However when I do an across the dates are displayed in alphabetical order.I want them to be displayed in the table order. Can someone tell me how to display month/day in smart dates? From what I have been reading in the previous posts, the reason why it is sorting alphabetically is because of the format alpha.


DEFINE FILE TEST
DATE/YYMD = BOOK_DATE;
DATE_2/A8YYMD =DATECVT(DATE, 'YYMD', 'A8YYMD');
MTH/A4 = EDIT(DATE_2,'$$$$99$$');
MTH_2/A4= DECODE MTH(01 Jan 02 Feb 03 Mar 04 Apr 05 May 06 Jun
07 Jul 08 Aug 09 Sep 10 Oct 11 Nov 12 Dec ELSE ' ');
DY/A4 = EDIT(DATE_2, '$$$$$$99');
MYDATE/A8 = MTH_2||DY;
END


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
April 24, 2007, 12:31 PM
Leah
If you don't mind the year showing as two digits this works
DATEDIST/MDYT = BOOKDATE;

I don't know what the magic combination if any exists to just have a smart date with just Month and Day only to get an alpha month.


Leah
April 24, 2007, 01:05 PM
LEX-IA
Hi Leah,

Thanks for your suggestion but I don't want the year to show. For this graph I have a combination of 3 years. Showing the year would not be accurate. I really need to show only month/day.


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
April 24, 2007, 04:19 PM
FrankDutch
Lex

We had the same problem and my solution is not so nice..
I added the number 01 - 12 in the datestring so
01 jan
02 feb
03 mar etc
but there might be a better solution.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

April 24, 2007, 05:15 PM
LEX-IA
Here is the solution: Winky


DATE/HYYMD = HDTTM(BOOK_DATE, 8, 'HYYMD');
DATE1/HYYMD=DATE;
MY_DATE/HMtDN=DATE;

* The N removes the save between the month and day. i.e May18 instead of May 18.

if you do want the space: HMtD

Thanks
Lex


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
April 24, 2007, 07:07 PM
susannah
oohh that's very nice, lex




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 25, 2007, 09:14 AM
Jock
Another technique I found that works is using I8YYMD instead of A8YYMD. I8YYMD will sort the date numerically instead of alphabetically.

Hope this helps in the future.

-Jock


-Jock Naert
May 11, 2007, 10:28 AM
LEX-IA
Thanks Jock!


PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX
TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX