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!

Calculate date of previous day

Status
Not open for further replies.

25456378

Technical User
Oct 26, 2011
7
0
0
MT
Dear COGNOS users,

I would like to run a report daily at 00:05 AM to collect data generated on the previous day. I am using scheduler to run the report however I have a problem of how to set the date filter in the report. I need to collect data of the previous day and I am using the following synthax:

day(today())-1=day(Receive date)and month(today())=month(Receive date)and year(today())=year(Receive date)........

This works OK but fails if the day is the first of the month, since day(today())-1=day(Receive date) will return a 0 and so no data is retrieved.

Anyone can provide me with any suggestions? I am using COGNOS Impromptu version 7.5.

Thanks,
Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top