Alteryx Designer Desktop Discussions

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

Function similar to "Coalesce"

kmcdowell
7 - Meteor

Hello,

 

I am trying to find the best way to choose the first non-null variable for output from a list of variables.  This is similar to the coalesce function in sql or SAS. So, if there are five fields, I would like to output the first one in the list that is not null.  If all are null, then it would just output the last field.  Any ideas would be appreciated.  Thank you!

21 REPLIES 21
Prometheus
12 - Quasar

Thanks. I was able to get part of the logic down through your pictures, but when I downloaded the file, I saw there were no tools in it.

simonaubert_bd
13 - Pulsar
Labels