Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date/Time filter in scheduled reports Cognos Impromptu 7.4 1

Status
Not open for further replies.
Feb 8, 2005
8
0
0
US
Dear community,

I would like to request your help with Cognos Impromptu 7.4 scheduled reports.

A client asked me to create a filter that would show a list of data between e.g. 11PM last night and 7AM this morning. I know how to do this with regular prompts but need some guidance on how to automate this for a scheduled report.

Thanks so much!
 
Thierry,
Whether it's a limitation of Impromptu or my database, I've never found the time handling functions to be useful; there being no add-hours or add-minutes capabilty.

If the report is being run daily, and there is no need to take account of weekends/public holidays, could you not use a filter like
Code:
(Datetimefield >= add-days (datetime-to-date( now()), -1) and hour (Datetimefield) >= 23 or ( Datetimefield >=datetime-to-date( now()) and hour(Datetimefield) < 7)
where datetimefield is the data to test, and now() function returns the current date and time? (Data that is at 7:00a.m. today will not be included - one would need to check the minutes too if hour=7 is tested).

HTH,
lex


soi la, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top