COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: cognos74 on 22 Jul 2016 12:21:47 PM

Title: Expression Parssing Error
Post by: cognos74 on 22 Jul 2016 12:21:47 PM
Hi,

I am not sure what is wrong in my expression, I am getting parsing error before or near etc..

case
when ([Package Layer].[Employee].[GRADE] = 'AB' and [DEPT] = 40 then 'West' or [Package Layer].[Employee].[GRADE] = NULL and [HOSP] = 140 then 'CORP')
else
([Package Layer].[Employee].[GRADE])
end

couls you please help me
Title: Re: Expression Parssing Error
Post by: dougp on 22 Jul 2016 12:34:16 PM
Please provide the actual error message.
Title: Re: Expression Parssing Error
Post by: HalfBloodPrince on 25 Jul 2016 01:47:48 AM
case
when ([Package Layer].[Employee].[GRADE] = 'AB' and [DEPT] = 40 )
then ('West' )
when ( [Package Layer].[Employee].[GRADE] = NULL and [HOSP] = 140 ) then
('CORP')
else
([Package Layer].[Employee].[GRADE])
end