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

Concate fields with unique identifier

HM
8 - Asteroid

Hi,

 

I'm looking to concat the contect of 2 cells based on the unique identifier to create a new field without changing the structure of the data:

 

Input:

IDTypeName
1Enabler

apples

2Dependentwine
1Dependentjuice
3Dependentchips
3Enablerpotatoes
2Enablergrapes

 

Desired output:

IDTypeNameConcatenated field
1Enabler

apple

apple juice

2Dependentwinegrape wine
1Dependentjuiceapple juice
3Dependentchipspotato chips
3Enablerpotatopotato chips
2Enablergrapegrape wine

 

Thanks

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
The plurals in the examples are ignored.

Take your input and filter it on type == "Enabler"

Setup 2 join tools

1. True to left & false to right (from filter). Join key is ID.
2. true to right & false to left (from filter). Join key is ID.

3. Union both Join outputs (J) together.

4. Formula: concatenated field gets;

[name] + " " + [right_name]

5. Select to cleanup fields.

I think that this should get you where you are trying to go.

Thanks,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
MarqueeCrew
20 - Arcturus
20 - Arcturus

You will need to have a formula after each join. You'll setup the concatenated field with the appropriate enabler and dependent field. 

 

Then you can select, cleanup and union the data back together. 

 

Minor revision. 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
MarqueeCrew
20 - Arcturus
20 - Arcturus

It is morning and a module is here now.  It is very close to the descriptions of a sleepy community member.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors