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     [SOLVED] Date across field with format I6MTYY doesn't order by year?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Date across field with format I6MTYY doesn't order by year?
 Login/Join
 
Member
posted
I have a report that has the below field as an across field:
DDACTUAL_DATE/I6MTYY = DACTUAL_DATE;

Here is the order the fields print;
JAN 2013 FEB 2013 OCT 2012 NOV 2012 DEC 2012

I need this format mmm yyyy, how do I get the columns to be in month/year order? I want the 2012 columms before the 2013 ones.

This message has been edited. Last edited by: Kerry,
 
Posts: 5 | Location: El Sobrante, CA | Registered: September 07, 2007Report This Post
Virtuoso
posted Hide Post
Put another across before it that orders by year. If you don't want to see that one, add a NOPRINT.

If it were up to me I'd split those dates into an YY and an MT component and across on those, so you'd get:
2012        2013
OCT NOV DEC JAN FEB


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
Remove the I6 from the DEFINE, otherwise DDACTUAL_DATE is an integer dressed in date clothing.

DEFINE FILE CENTORD
DDACTUAL_DATE/MTYY = ORDER_DATE;
END

TABLE FILE CENTORD
SUM
QUANTITY
-*BY ORDER_DATE
ACROSS DDACTUAL_DATE
WHERE ORDER_DATE FROM '1998/12/01' TO '2001/02/28'
END


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Thank you all, I tried the first technique that was suggested and it worked fine.
 
Posts: 5 | Location: El Sobrante, CA | Registered: September 07, 2007Report 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     [SOLVED] Date across field with format I6MTYY doesn't order by year?

Copyright © 1996-2020 Information Builders