Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
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