COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: gatorfe on 06 Mar 2014 04:07:18 PM

Title: Static Filter
Post by: gatorfe on 06 Mar 2014 04:07:18 PM
We have a report that has filter setup to only show record types of a certain kind.  The syntax is [Record Type] in ('1','2','5'). Attached is a pic.  The user is asking that it only show the Record Type  of '5' when the company is 100.  We have several companies in the data, 100, 200, and 300.  So for Record Type '1' and '2' any company is ok but for Record Type '5' it should show the records for only company 100.  How do we do this?  Thank you in advance for your suggestions!
Title: Re: Static Filter
Post by: Lynn on 07 Mar 2014 07:43:22 AM
Maybe something like this:


(
  [Company Code] = 100
  and
  [Record Type] in ( '1','2','5' )
)
or
(
  [Company Code] <> 100
  and
  [Record Type] in ( '1','2' )
)
Title: Re: Static Filter
Post by: gatorfe on 07 Mar 2014 09:16:54 AM
Thank you Lynn!  That worked perfectly!