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]Filtering on a QY Date Field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Filtering on a QY Date Field
 Login/Join
 
Gold member
posted
I have a procedure that converts a date from 'YYMD' to 'QY' format to report at the Quarter and Year level. This is done by using a defined field and it works perfectly. However, whenever I try to filter this Quarter/Year date field, my report will not produce any results. The defined field looks like:
QUARTERYEAR/QY=PLANEXECUTEDDATE;
(PLANEXECUTEDDATE is YYMD)

I've also tried this which didn't change the results:
DATECVT(PLANEXECUTEDDATE, 'YYMD', 'QY');

I have tried multiple variations of Quarter/Year to try to get the filter to work properly with no success. Examples I've tried are: 414 (fourth quarter 2014, which is what the GUI shows as a valid value), Q4 14 (which is how it displays in the report), Q414, and other combinations.

Any ideas what I might be missing? Is there some defined field issue I am overlooking?

Thanks

This message has been edited. Last edited by: capples,


WF 8.2.0.3
Windows 10 64bit
HTML, AHTML, PDF, Excel
 
Posts: 83 | Registered: April 13, 2015Report This Post
Expert
posted Hide Post
This seems to work (using a demo table):

DEFINE FILE EMPLOYEE
HIRE_QY/QY = HIRE_DATE
END

TABLE FILE EMPLOYEE
PRINT
EMP_ID
BY HIRE_QY
BY HIRE_DATE

WHERE HIRE_QY = 'Q1 82';

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
Gold member
posted Hide Post
So after inspecting that demo table, the Hire_Date field is I6YMD, I converted my date field to I6YMD and now it allows me to filter properly. I'm not really sure why this works to be honest, but I'll go with it.

Thanks Francis.


WF 8.2.0.3
Windows 10 64bit
HTML, AHTML, PDF, Excel
 
Posts: 83 | Registered: April 13, 2015Report This Post
Expert
posted Hide Post
That's odd, because it seems to work with YYMD dates. Perhaps it works because the demo is a FOCUS DB and not a RDBMS table.

DEFINE FILE EMPLOYEE
HIRE_DATE1_YYMD/YYMD = HIRE_DATE;
HIRE_DATE_YYMD/YYMD = HIRE_DATE1_YYMD;
HIRE_QY/QY = HIRE_DATE_YYMD;
END

TABLE FILE EMPLOYEE
SUM
EMP_ID
BY EMP_ID NOPRINT
-*BY HIRE_QY
-*BY HIRE_DATE
-*BY HIRE_DATE_YYMD

WHERE HIRE_QY = 'Q1 82';

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
  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]Filtering on a QY Date Field

Copyright © 1996-2020 Information Builders