Free Trial

Alteryx Designer Desktop Discussions

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

How to concatenate using a Lookup Table

hcho
8 - Asteroid

I want to concatenate the fields where the fields are specified within a lookup table.

I'm referring to an existing post, but I'm facing challenges handling multiple field names separated by commas within a single cell.

 

The workflow I'm aiming to create should accept two inputs:

1. Data:

RecordIDIndustryFirstNameLastNameAgeYearsOfEducationYearsAtCurrentJobSalary
1CommunicationRonaldDryer4316583000
2ManufacturingAngelinaPrissant3318487000
3ManufacturingTaraJackson2812635000
4CommunicationKeithJacobs5614863000
5ManufacturingTerrenceMcKinley2618280000
6ManufacturingWilmaHolmes63161277000
7CommunicationMarkHodges4612234500
8SoftwareDanielleRodriguez29221108000
9SoftwareMichaelLawrence5316793000
10SoftwareMichaelLawrence53167930
11SoftwareChristinaKim3216488000
12SoftwareChristinaLi3216488000

 

2. Lookup Table

FileNameFieldType
CustomerFirstName,LastNameUnique

 

Desired output:

RecordIDIndustryFirstNameLastNameAgeYearsOfEducationYearsAtCurrentJobSalaryFullName
1CommunicationRonaldDryer4316583000RonaldDryer
2ManufacturingAngelinaPrissant3318487000AngelinaPrissant
3ManufacturingTaraJackson2812635000TaraJackson
4CommunicationKeithJacobs5614863000KeithJacobs
5ManufacturingTerrenceMcKinley2618280000TerrenceMcKinley
6ManufacturingWilmaHolmes63161277000WilmaHolmes
7CommunicationMarkHodges4612234500MarkHodges
8SoftwareDanielleRodriguez29221108000DanielleRodriguez
9SoftwareMichaelLawrence5316793000MichaelLawrence
10SoftwareMichaelLawrence53167930MichaelLawrence
11SoftwareChristinaKim3216488000ChristinaKim
12SoftwareChristinaLi3216488000ChristinaLi

 

The goal is to concatenate the fields specified in the lookup table.

Any guidance or suggestions on handling the multiple field names would be greatly appreciated!

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @hcho 

 

Give this a go, hopefully it gets you started. I transposed the data and split out the field names in order to isolate just the fields that need to be concatenated. Then did the concatenation and put it back with the original dataset. 

image.png

Carolyn
12 - Quasar
12 - Quasar

Are you saying that you want to Concatenate the FirstName & LastName columns to create a value to lookup to the lookup table? If so, I would change the FullName formula to be

 

[FirstName] + "," + [LastName]

instead of what looks like 

[FirstName][LastName]

in your Desired Output table. 

 

 

With the comma, then that should lookup to your Lookup table's [Field] column which is in the format of First,Last

Labels
Top Solution Authors