Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Formula configuration - If contains.... and is not null

JulianneKorn
5 - Atom

Hello!

 

New to Alteryx! I created the below formula, but want to add that if the field is null, then "Unknown" but am having issues:

 

iif(contains([parEthnicity],"Hispanic or Latino/Latina"),"Hispanic or Latino/Latina","Non-Hispanic/Non-Latino/Latina")

 

Thanks in advance for your help!

 

1 REPLY 1
JulianneKorn
5 - Atom
if IsNull([parEthnicity]) then 'Data Not Collected' 
elseif Contains([parEthnicity], 'Hispanic or Latino/Latina') then 'Hispanic or Latnio/Latina' else 'Non-Hispanic/Non-Latino/Latina' endif
Labels