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.
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
Top Solution Authors