COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: Toushila on 05 Jun 2008 05:15:33 PM

Title: Last Week Monday to Friday Dates to be displayed in Report Period
Post by: Toushila on 05 Jun 2008 05:15:33 PM
Hi All,

I've to display in my report Last week Monday to Friday Dates in my Report Period and the report will be run on Monday of current week.

Example:
Today is June 5th 2008,Thursday . 
Monday is June 2, 2008 -- This is the day the report will be run and it should display the Report Period as:

Report Period:  May 26, 2008 TO May 30, 2008.

Did anyone encounter such requirement? Please share your insights...... and thanks in advance for the help!

Cheers,
Toushila

Title: Re: Last Week Monday to Friday Dates to be displayed in Report Period
Post by: utsabsengupta on 24 Mar 2009 06:34:34 AM
 For last week dates from Monday to Friday Use:To_char(sysdate()-5 -TO_NUMBER(TO_CHAR(SYSDATE(),'D')) ,'MON DD') to To_char(sysdate()-1-TO_NUMBER(TO_CHAR(SYSDATE(),'D')) ,'MON DD')