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 to find non-empty value

michael2529
5 - Atom

Hi All

I am trying to write a formula that essentially checks multiple fields for non-empty values and then once it finds that value, it will populate the output column. I can't seem to get the formula correct though... any thoughts or advice? Thanks in advance!

 

IF [item_code] = IsEmpty([item_code]) THEN [Input_#2_item_code]
ELSEiF [Input_#2_item_code] = IsEmpty([Input_#2_item_code]) THEN [Input_#3_item_code] = IsEmpty([Input_#3_item_code])
ELSEIF [Input_#4_item_code] = IsEmpty([Input_#4_item_code]) then [Input_#5_item_code]
ELSEIF [Input_#5_item_code] = IsEmpty([Input_#6_item_code]) then
[Input_#6_item_code] ENDIF

2 REPLIES 2
messi007
15 - Aurora
15 - Aurora

@michael2529,

Please try the formula below :

 

IF IsEmpty([item_code]) THEN [Input_#2_item_code]
ELSEiF IsEmpty([Input_#2_item_code]) THEN [Input_#3_item_code]
ELSEIF IsEmpty([Input_#4_item_code]) then [Input_#5_item_code]
ELSEIF IsEmpty([Input_#6_item_code]) then
[Input_#6_item_code] ENDIF

 

Regards,

michael2529
5 - Atom

Perfect, thank you!

Labels
Top Solution Authors