Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

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
MVP
MVP

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