COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: jcuiskelly on 22 Feb 2007 04:38:29 PM

Title: Date Expression
Post by: jcuiskelly on 22 Feb 2007 04:38:29 PM
Does anyone know how to write an expression to capture data for the prior month when the current month has less number of days then the prior month?  The expression I used only captures data from 01/01/07 to 01/28/07 because there are only 28 days in the February.  Here is the expression: between _add_months(_first_of_month(CURRENT_DATE), -1) and _add_months(_last_of_month(CURRENT_DATE), -1).   Thanks
Title: Re: Date Expression
Post by: COGNOiSe administrator on 08 May 2007 12:25:01 AM
Substract one day from the first day of current month ...