COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: gatorfe on 13 Feb 2007 03:58:51 PM

Title: Formula Filter
Post by: gatorfe on 13 Feb 2007 03:58:51 PM
I have the following formula set up as a data item on a query that is on the prompt page of a report:
right([AccountNumber],3)Ã, 

I have lots of accounts that end in 040 and I do not want to see those.Ã,  I added a filter to the query:
[Dept] <> 040

When I do this the report does not run.Ã,  Is there any other way to tell the report that I do not want to see account numbers with 040 in the drop down of my prompt page?Ã,  Thanks in advance for any suggestions.
Title: Re: Formula Filter
Post by: MDXpressor on 14 Feb 2007 12:01:07 AM
Are you serving the Prompt Page dropdown with an independant query specific to the selections?  Perhaps you have just served it with the data item you use to also serve the data container (the list, crosstab or chart) you are attempting to render?
Title: Re: Formula Filter
Post by: bdybldr on 22 Feb 2007 10:46:01 AM
gatorfe,

I assume you're using substring or right function in your filter because you said departments end in 040.  The filter will never work unless department is only 3 characters long.