Alteryx Designer Desktop Discussions

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

Finding Not Null from multiple columns & outputting records in a new column

kushalb
7 - Meteor

Hi, I am trying to use P_CLASSIFICATION & C_PI CLASSIFICATION data to fetch a correct Classification in a new helper column for Data Mapping through IF Formula in Formula tool but I couldn't do it

 

Kindly help me with the solution on this as how to navigate this. (Might be concatenate would not work here because of formatting issue but have not tried that though)

 

NumberCLIENT NAMEP_CLASSIFICATIONC_PI CLASSIFICATIONCorrect Classification
1000354ABCDIPZCZW (Full)IPZ + CZW
1002156EFGHIPZNULLIPI
1015JKLMIPZSFWIPZ + SFW
1028NOPQIPZCZW (Partial)IPZ + CZW
1048490RSTUNULLCZW (Partial)CZW
1059096VWXYNULLCZW (Full)CZW
1029FGQANULLSFWSFW
2 REPLIES 2
chukleswk
11 - Bolide

You can use the following formula using the formula tool:

 

if isnull([P_CLASSIFICATION]) then trim(getword([C_PI CLASSIFICATION],0))

elseif isnull([C_PI CLASSIFICATION]) then trim(getword([P_CLASSIFICATION],0))

else trim(getword([P_CLASSIFICATION],0)) + ' + ' + trim(getword([C_PI CLASSIFICATION],0))
endif

 

Capture.PNG

kushalb
7 - Meteor

Thanks for solving that very quick

Labels