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 Range with current month

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Date Range with current month
 Login/Join
 
Platinum Member
posted
Hi,

I have a question.I don't know whether the question sounds silly or not because i thought i can easily implement it but i couldn't.
I have a report and it should run with a date range as where condition.
Where condition should be like:
YEAR > 2017 and YEAR < 2018/02

This message has been edited. Last edited by: FP Mod Chuck,


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Platinum Member
posted Hide Post
srajeevan,
Have 2 column in your data table,
1:- Year/I4
2:- year_M/I6YYM
and than apply your where condition ,
 where Year GT 2017 and year_M LT 201802 


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Platinum Member
posted Hide Post
Hi,

I have tried to create that year_M define field.But i am getting error.
  
DEFINE FILE TBL1
Defyear/YY=OFFICER_DAILY_DATE;
Defmonth1/MT=OFFICER_DAILY_DATE;
Defmonth/D2 = Defmonth1;
year_M/I6YYM=OFFICER_DAILY_DATE;


When i use that field in my report it says the field is not recognized.


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Platinum Member
posted Hide Post
Hi Chaudhary..

I created year_M and it worked.
year_M/YYMD=HDATE(OFFICER_DAILY_DATE,'YYMD');
converted the date field to YYMD format coz it was in YYMDHMS format.
Then converted to year month format
yearmonth/YY|M = year_M;
  

Thanks.


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report 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 Range with current month

Copyright © 1996-2020 Information Builders