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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Date Prompts
 Login/Join
 
<BrianS>
posted
I am wanting to combine two seperate queries into one Excel workbook as seperate spreadsheets. I'm trying to add a single date prompt for both queries. For one query I need to pull one months worth of data (8/1/07-8/31/07) and the second query will be for historic data for the previous six months (3/1/07-8/31/07). My question is, can I use one prompt that will pull my current data and use the same prompt but subtract 6 months from the start date for the historic data?
 
Report This Post
Expert
posted Hide Post
Use the AYM date function to subtract six months from the input date:

-SET &DATE1  = '20070831';
-SET &DATE1A = EDIT(&DATE1,'999999$$');

-SET &DATE2A = AYM(&DATE1A, -6, 'I6');
-SET &DATE2 = &DATE2A || '01';

-TYPE &DATE1 &DATE2


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
Virtuoso
posted Hide Post
Francis gives a nice example. The answer to your question is 'yes'. Your parameter would be what passes to the &DATE1 variable.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders