COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: Sep2013 on 12 Sep 2013 11:38:03 PM

Title: Create a pre defined filter for ad hoc reporting
Post by: Sep2013 on 12 Sep 2013 11:38:03 PM
Hi gurus,

Is it possible to create a filter in cognos, that can be used for ad hoc reporting .
Ex. current month to date.
If yes, will be it created in Framewok manager?
Title: Re: Create a pre defined filter for ad hoc reporting
Post by: blom0344 on 13 Sep 2013 02:56:55 AM
Yes and no..  For a specific date elsewhere in the model, yes, but not in a generic sense..
Title: Re: Create a pre defined filter for ad hoc reporting
Post by: Sep2013 on 13 Sep 2013 05:51:41 AM
Thnx blom. I have a date dimension.. And i am trying to use a filter as
Month= datepart(month,current_date) and date= datepart(date,current_date)

But when i drag it in my workspace advanced report, it throws error
Title: Re: Create a pre defined filter for ad hoc reporting
Post by: MFGF on 13 Sep 2013 07:26:06 AM
Hi,

Try using Cognos syntax, eg:

[Month] = extract(month, current_date)

MF.
Title: Re: Create a pre defined filter for ad hoc reporting
Post by: Sep2013 on 17 Sep 2013 03:13:46 AM
Worked.. Thanks MFGF...