COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: barrysaab on 19 Sep 2011 12:37:50 PM

Title: Filter and parsing error
Post by: barrysaab on 19 Sep 2011 12:37:50 PM
In my report, which is developed through SQL, I have several category codes of different categories. It is concatenated column for which I have taken a data item and concatenated category code and desc. I want to restrict it to some categories code to only few but filter is throwing up an error "sql prepare with" and parsing error. I gave expression like [data item] not in ('1','2',3'). Please Help.

Title: Re: Filter and parsing error
Post by: kalyanapu on 19 Sep 2011 07:36:15 PM
You are concatenating the Code and Description but you are including the code in not in function. How it recognizes the Data Code only when it has description.
Use the Concertinaed Field value or Create one data item for code only and use that one in Filter area.

One More thing for report performance wise better to avoid the "Not in" operator when you are dealing with huge amount of data"
Check with your business scenario.

Best Regards,
Srinivas Kalyanapu