Hello, Just started using Alteryx this week and I have read through some of the suggestions on how to create the "if contains" formula. I'm not sure if I am missing something but it keeps returning a "null" value. My assignment column has several different grade types which I need to group in into one grade. What I am I trying to achieve is if the assignment column says "MKH" or "SHB" etc. then I want my expression to return "SMA" in the output column.
below is how I wrote it out. I maybe complicating it but if any one has any suggestions that would be great.
IF Contains ([Assignment], "HSH") THEN "SMA"
ELSEIF Contains([Assignment], "MKH") THEN "SMA"
ELSEIF Contains([Assignment], "SHB") THEN "SMA"
ELSEIF Contains([Assignment], "SCS") THEN "SMA"
ELSEIF Contains([Assignment], "SYB") THEN "SMA"
ELSEIF Contains([Assignment], "PXB") THEN "SMA"
ELSE Null()
ENDIF