Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Across Month/Day in Graph

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Across Month/Day in Graph
 Login/Join
 
Gold member
posted
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
 
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Gold member
posted Hide Post
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
 
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006Report This Post
Virtuoso
posted Hide Post
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

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
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
 
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006Report This Post
Expert
posted Hide Post
oohh that's very nice, lex




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
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
 
Posts: 2 | Registered: March 07, 2007Report This Post
Gold member
posted Hide Post
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
 
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Across Month/Day in Graph

Copyright © 1996-2020 Information Builders