COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: esanray on 18 Apr 2011 09:02:55 PM

Title: YTD
Post by: esanray on 18 Apr 2011 09:02:55 PM
Can you please tell me how to filter YTD in report studio or FM.
Title: Re: YTD
Post by: jcrouch on 18 Apr 2011 09:31:05 PM
Hi esanray,

Try this in RS, in a filter on a date field:

[YOUR_DATE] >= trunc(current_date,'Y')
Title: Re: YTD
Post by: esanray on 19 Apr 2011 02:44:09 AM
yes that correct, if i go for last 5 years filter what is the syntax?
Title: Re: YTD
Post by: 167505 on 26 Apr 2011 04:03:25 PM
[date] between _add_months(current_date,-60) and current_date  will give you 60 months data.. is this what you required or do you expect some other calculation

Regards,
Nag
Title: Re: YTD
Post by: esanray on 26 Apr 2011 09:09:24 PM
Graph total number of disrupted guest comparison for financial year versus past 5 financial years broken down per month, this my requirement
Title: Re: YTD
Post by: esanray on 26 Apr 2011 09:50:56 PM
Graph total number of disrupted guest comparison for financial year versus past 5 financial years broken down per month, this report is run 1st of every month with compare to the last 5 years brolken down in months.