In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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