Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate associated values

How can I concatenate a list of values to an associated set of data? Whilst retaining the original values

For example

Table 1

Meeting notes
Meeting ID
gdggdfgdfsgdfgdfgdfggdfgdfg12
dfgdfgfnhkuykjndfdv13
dgwgrenfgjtyikir14

Table 2

Meeting IDAttendee
12Bob
12Jack
13Sam
13Alex
13Jane
14Bob
14Alex

I need the list of attendees concatenated as per the 3rd column. I still need to retain table 1 and table 2 separately though.

Is it best to concatenate it on the front end? Or is it best to do it in the load

Meeting notes
Meeting IDAttendees
gdggdfgdfsgdfgdfgdfggdfgdfg12Bob, Jack
dfgdfgfnhkuykjndfdv13Sam, Alex, Jane
dgwgrenfgjtyikir14Bob, Alex
1 Solution

Accepted Solutions
Not applicable
Author

It was as simple as adding another expression

concat(distinct Attendee,',')

View solution in original post

2 Replies
rubenmarin

Hi Alex, try this:

Table1:

LOAD [Meeting notes], [Meeting ID] from...;

Left Join (Table1)

LOAD [Meeting ID], Concat(Attendee, ', ') as Attendees from .... Group by [Meeting ID]

Not applicable
Author

It was as simple as adding another expression

concat(distinct Attendee,',')