Alteryx Designer Desktop Discussions

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

Dynamically combining not blank fields

Jeff13
6 - Meteoroid

I have a file of email addresses that may contain blank email addresses in various columns. So from the data in the screenshot below, the result I am looking for would be 

1@email.com,2@email.com,3@email.com,4@email.com

1@email.com,3@email.com

2@email.com

5@email.com

 

Basically I need the not null fields concatenated together separated by a comma. When there is only 1 field, I would only want the single email address.

 

Thanks in advance.

 

dddAlteryxDynCombine1.png

2 REPLIES 2
DataNath
17 - Castor

Hey @Jeff13, how does this look? We just set a RecordID so we have something to group by when concatenating, Transpose to get all of our emails in a single field, Filter out any null values and set a standard 'Email' [Name] field, then finish off by Cross-Tabbing with concatenating as our method of aggregation. Finally we just sort by RecordID to restore our original order:

 

DataNath_0-1678470214710.png

Jeff13
6 - Meteoroid

WOW. Amazing. Thank you so much!!!

Labels