Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

I am getting a parse error at char: unmatched

Lauramaria
5 - Atom

if contains([product_group],"XX") AND contains([marketing], "YY") then "XXYY" elseif contains ([product_group],"AA") AND contains([marketing], "BB") then "AABB" elseif contains ([product_group],"CC") AND contains([marketing], "DD") then "CCDD" elseif contains  ([marketing], "Proj A") then "Project A" elseif contains([marketing], "Proj B") then "Project B" elseif contains([marketing], "Suppt") then "Support team" elseif contains([marketing], "ABC") AND contains([marketing], "mgmt") and contains([marketing], "ABCDE") then "CONSULTING"

elseif ([product_group])

endif

1 REPLY 1
JagdeeshN
12 - Quasar
12 - Quasar

Hi @Lauramaria ,

 

You are missing the 'else' clause which results in this error.

 

Please find below a modified statement with the else.

 

if contains([product_group],"XX") AND contains([marketing], "YY") then "XXYY" elseif contains ([product_group],"AA") AND contains([marketing], "BB") then "AABB" elseif contains ([product_group],"CC") AND contains([marketing], "DD") then "CCDD" elseif contains ([marketing], "Proj A") then "Project A" elseif contains([marketing], "Proj B") then "Project B" elseif contains([marketing], "Suppt") then "Support team" elseif contains([marketing], "ABC") AND contains([marketing], "mgmt") and contains([marketing], "ABCDE") then "CONSULTING"

else ([product_group])

endif

 

Hope this helps.

 

Best,

Jagdeesh

Labels
Top Solution Authors