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

Alteryx Designer Desktop Discussions

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

Concatenate 3 Columns into ONE NEW COLUMN

Adam_B
8 - Asteroid

Hello, 

I have searched through the discussion boards and I am not finding help on one issue I have.  I have to create a NEW Column named "NewCOLUMN", in that column I would like to use 3 columns information, separated by a comma.  Attached is a copy of the data.  

 

Column 1Column 2Column 3
Joe8/2/2010Smith
Steve8/25/2008Perry
Sue1/4/2010Parsons
Peter1/25/2021Piper
Ralph10/22/2000Machio

 

I would like NewCOLUMN to show Row 1 as: 

Joe,02/08/2010,Smith

 

I can do this in Excel with a concatenate formula as CONCAT(A2,",",TEXT(B2,"dd/mm/yyyy"),",",C2)

 

But how do I do this in Alteryx???

 

16 REPLIES 16
michelle_mathews
Alteryx Alumni (Retired)

@Adam_B , you can use the following expression in the formula tool: [Column 1]+","+[Column 2]+","+[Column 3]

Adam_B
8 - Asteroid

@michelle_mathews So this is the error I am getting. 

Adam_B_1-1664828867349.png

 

 

Adam_B_0-1664828848762.png

 

michelle_mathews
Alteryx Alumni (Retired)

@Adam_B , looks like you have extra square brackets in there. Each column name should be enclosed by single square brackets like this [Column Name]

binuacs
21 - Polaris

@Adam_B One way of dong this

 

binuacs_0-1664829212940.png

 

Adam_B
8 - Asteroid

@michelle_mathews the raw data has the column name with a Bracket, so when I chose it, it comes into the formula

Adam_B_0-1664829725965.png

 

michelle_mathews
Alteryx Alumni (Retired)

@Adam_B , gotcha. Are all 3 columns string? Trying using a Select to ensure that date field is a string before concatenating. Alternatively, another user posted an example on how to account for that within the formula. 

Adam_B
8 - Asteroid

@michelle_mathews  Not sure what mean by Select, as in the preparation tool? 

michelle_mathews
Alteryx Alumni (Retired)

@Adam_B , yes. Attaching an example 

Adam_B
8 - Asteroid

@binuacs I am getting this parse error

Adam_B_0-1664830477623.png

 

Labels
Top Solution Authors