Error in rule
Posted: Mon Aug 16, 2010 9:26 pm
Hi,
I have a measure in which one element is string(Current status) which contains a single alphabet('G', 'R', 'Y') and i have a simple element(Status). I want to populate the numeric field such as if string element has 'G' then 1, 'Y' then 2 and 'R' then 3.
I wrote a rule like this.
['Status']=IF(['Current Status']='G', 1, IF(['Current Status']='Y', 2, IF(['Current Status']='R', 3, 0)));
Am am getting following error
---------------------------
TM1 Error
---------------------------
Line 1: Syntax error on or before:
'G', 1, IF(['Current
incorrect logical comparison
Please help me with this error.
Thanks
Daya
I have a measure in which one element is string(Current status) which contains a single alphabet('G', 'R', 'Y') and i have a simple element(Status). I want to populate the numeric field such as if string element has 'G' then 1, 'Y' then 2 and 'R' then 3.
I wrote a rule like this.
['Status']=IF(['Current Status']='G', 1, IF(['Current Status']='Y', 2, IF(['Current Status']='R', 3, 0)));
Am am getting following error
---------------------------
TM1 Error
---------------------------
Line 1: Syntax error on or before:
'G', 1, IF(['Current
incorrect logical comparison
Please help me with this error.
Thanks
Daya