Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Combine all columns in a row with pipe delimiter

ramanm43
6 - Meteoroid

Hi All,

 

New user to Alteryx and have been tasked to update an existing flow. I have searched the forum for an existing topic to help with my issue but was unable to find anything relevant for my issue, would be grateful if someone could point me in the right direction.

 

I have a flow which produces a result but I need to update this so the output file is as below:

 

Current output:

Codedirectorysicsic_descseg
gb14627Accountants45682Businessn
gb37280Editorial47895Businessn
gb47289Beauty14498Personaly
gb25390Editorial56487Businessn

 

Required Output:

gb14627|Accountants|45682|Business|n
gb37280|Editorial|47895|Business|n
gb47289Beauty14498Personaly
gb25390Editorial56487Businessn

 

Thanks

1 REPLY 1
grazitti_sapna
17 - Castor

Hi @ramanm43 , you can do it using a select tool and formula tool. I hope it helps and mark this post as solution if it solves your purpose.

Thanks.

 

1) Change all the data types into string because concatination works only in case of string.

 

grazitti_sapna_0-1593080767690.png

 

2) Apply formula tool with the following syntax to concatinate with a pipe delimiter

[Code]+"|"+[directory]+"|"+[sic]+"|"+[sic_desc]+"|"+[seg]

 

grazitti_sapna_1-1593080838922.png

 

3)Output

grazitti_sapna_0-1593080613729.png

4) If you want just the Concatinated field as output you can add a select tool and choose only the last field.

grazitti_sapna_2-1593080893884.png

 

Sapna Gupta
Labels