The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Concatenate All Fields Dynamically

ricoo
Asteroide

Hi All,

 

Is there a way in  Alteryx where in I could dynamically concatenate all columns from a data set? I’m thinking of using Multi-Field Formula, but I don’t know how I could apply it. I needed it to be dynamic so that it can accept different data structure from different data sets. If I could make it work, I'm thinking of using it inside a macro.

21 RESPUESTAS 21
flying008
Aurora

Hi, @lhanson2 

 

Please see the above pic for Dynamic-Replace tool set of post 5 by @ricoo .

ricoo
Asteroide

Hi @lhanson2 apologies, I only got the time now to respond. the solution of @flying008 is working. The configuration for the dynamic replace is posted on my previous comment. But I'll also attach here.

 

DynamiceRename.png

KGT
Púlsar

Another way is a RecordID, followed by a transpose (RecordID as Key Field), then summarise to concatenate, grouping on RecordID. If you want to create JSON for instance, you would need a formula to combine [Name]:[Value] etc before concatenating.

 

The Dynamic Replace will be much more memory efficient and so quicker runtime, but the transpose/Summarise will be easier to understand/implement

ckelley0
Asteroide

@flying008 I mirrored your work closely.  I made one small modification; I added a Multi-Field tool to change all fields to strings.  Thank you, that was very helpful. 

Spoiler
Alteryx Dynamic Concat.PNG

Carrot_WinWin
Meteoro

Hi @flying008 ,

 

this is so helpful. do you mind to share the setup for Summarize Tool? Struggling with this, really appreciate

KGT
Púlsar

@Carrot_WinWin, you can see the config on the video on the first response or in the last comment workflow package. Attached and below is what it looks like:

 

AlteryxGui_XMjS7avxoD.png

 

 
 

 

 

 

mvaldes
Átomo

Hi- Thanking everyone for this. This has been extremely helpful for me to concatenate columns dynamically. Having an issue with my concat_name field. It is truncating my data. I thought this would be an easy fix with a select tool before to force the name field to V_WString size 2147483647 and the Concat_Name Field in the Summarize tool still shows I have truncated fields. Any idea how to fix? 

mvaldes
Átomo

My data in excel for concatenating shows about 900 characters when I run a len on my concat

KGT
Púlsar

What is the data truncating to?

Is this a figure that resonates at all? 

Is the result exactly the same after changing the length?

 

In short, truncated data should be easily found and resolved. Just got to look at where and why.

 

Note: Hopefully this "truncated data" thought is not referencing the results window message.

aoxomoxoa
Meteoro

what is in the formulae

 

Etiquetas
Autores con mayor cantidad de soluciones