COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: silywiwi on 17 Oct 2007 10:20:23 PM

Title: how make one query item has two filter?
Post by: silywiwi on 17 Oct 2007 10:20:23 PM
   hi all! me too:)
   i want to give a query item  two filter
   the query item accept the parameter by prompt page
   the name of query item is 'studentName',
   when the length of parameter greater than 9, i will use "studentName = ?para?"
   else i will use "studentName contains ?para?"
  how can i  make the requirement come true?
  thanks in advance!!
Title: Re: how make one query item has two filter?
Post by: almeids on 18 Oct 2007 08:55:52 AM
Use filter:
(length(param)>9 and (studentname=param)) or (length(param<=9) and (studentname contains param))