COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: jahnavi on 28 Nov 2007 11:56:43 PM

Title: Regarding the calculated value
Post by: jahnavi on 28 Nov 2007 11:56:43 PM
i am adding a dataitem and the exp is
if([Year]=?Year? and [Period] =(if(?Season? =[Spring]) then('06') else('12'))) then([Assortment Ind])else('') .At run time  its showing invalid logicaloperation. I am not able to find where  the error is

can any one sort out this

Thanks
Jahnavi.
Title: Re: Regarding the calculated value
Post by: Suraj on 03 Dec 2007 02:56:45 PM
Try this:
create a data item with this logic: if(?Season? =[Spring]) then('06') else('12')
and use that data item in the expression.
if([Year]=?Year? and [Period] =[Data Item]) then([Assortment Ind])else('') .