Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
roisolberg
Creator
Creator

Concatenating fields with common key (Different records)

Hi Everyone,

I am trying to concatenate fields from different records, the "Lot" that share the same  "Order" number.

for example:

Order   | Lot

1          | 123

1          | 1234

2          | 456

2          | 789

i'd like the result to be:

Order  | Lot

1         | 123, 1234

2         | 456, 789

any ideas?

Thanks!

1 Solution

Accepted Solutions
rubenmarin

Hi Roi, concat() function can do that:

LOAD Order,

     Concat(Lot, ', ') as Lot

Resident TableName

Group by Order;

View solution in original post

2 Replies
rubenmarin

Hi Roi, concat() function can do that:

LOAD Order,

     Concat(Lot, ', ') as Lot

Resident TableName

Group by Order;

roisolberg
Creator
Creator
Author

Thanks for the help Ruben