Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

formula not working !!!

VeronicaElse
8 - Asteroid

Hello,

 

I have a workflow that has 22 statements in this formula and I am needing to add one more but it is not working -I have to make sure the column OtherReasonforDenial has only I&E. I have tried elseif [OtherReasonForDenial] not in ('I "&" E') then 'other reason for denial error' elseif  --Also  elseif [OtherReasonForDenial] != 'I "&" E' then 'other reason for denial error' elseif 

 

I have also tried only using ('I&E') and 'I&E' 

 

Please help!

 

Thanks!

 

Veronica 

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @VeronicaElse 

 

Try

 

elseif [OtherReasonForDenial] not in ("I","E")

 

Hope this helps : )

VeronicaElse
8 - Asteroid

 

 

IN (...) Parameter #1 has a  type mismatch--- error given 😞

atcodedog05
22 - Nova
22 - Nova

Hi @VeronicaElse 

 

Hoping [OtherReasonForDenial] is a string type datatype

 

Try this

 

elseif [OtherReasonForDenial] not in ("I","E")

 

And share the error snapshot.

DawnDuong
13 - Pulsar
13 - Pulsar

hi @VeronicaElse 

The operator IN is not used correctly. The correct syntax is 

[Field name] IN ([value 1], [value 2], [Value 3]

 

In your case, you can use the formula:

 

[OtherReasonForDenial] NOT IN ("I", "E")

 

the IN operator will result in values of -1 for true and 0 for false. 

Dawn.

Labels