Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Creating new column from all available columns.

RVDL
8 - Asteroid

Hi All,

 

Suppose I have 10 columns called FLD1, FLD2, FLD3, etc.

 

I use a Formula tool to create a new column called ID which appends the values from the 10 columns. Thus my formula looks something like: [FLD1] + "_" + [FLD2] + "_" + [FLD3] + ... + [FLD10]

 

Suppose I now have 100 columns, and I want my ID column to contain the concatenation of the values in each of these 100 columns. Is there a way to create the ID column without typing out all the specific column names ( [FLD1] + ... + [FLD100] ) in a formula?

 

Thanks.

6 REPLIES 6
binuacs
21 - Polaris

@RVDL one way of doing this

binuacs_0-1753712792289.png

 

abacon
12 - Quasar

@RVDL I went the same route. You will need to transpose the columns into 1, then concatenate them using your seperator.

 

Bacon

 

image.png

RVDL
8 - Asteroid

@binuacs  Thank you.

RVDL
8 - Asteroid

@abacon  

 

This solution concatenates all records into a single cell. Thus:

 Test1Test2Test2
1OneTwoThree
2FourFiveSix

 

gives:

RecordConcat_Value
1One_Two_Three_Four_Five_Six

 

I needed the concatenation to happen for each record in the data. Thus:

RecordConcat_Value
1One_Two_Three
2Four_Five_Six

 

Maybe it wasn't clear from my ask. I'll try to be more specific next time when asking a query. Thanks for the quick response though.

abacon
12 - Quasar

@RVDL All good, I was making sure to answer your specific question and allowing for using that process for your specific use case. Glad you got it answered!

 

Bacon

flying008
15 - Aurora

Hi, @RVDL 

 

Another dynamic solution for you:

 

录制_2025_07_29_08_08_29_8.gif

Labels
Top Solution Authors