Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

script help

hi i have the following  3 records which i hope to flatten out to a single line

current situation

receipt , Item

1, 200

1, 300

1, 250

desired result

receipt, Item

1          200,300,250

is this possible?

best

brad

1 Solution

Accepted Solutions
maxgro
MVP
MVP

yes, with concat function

a:

load * inline [

receipt , Item

1, 200

1, 300

1, 250

];

b:

NoConcatenate load

receipt, concat(Item, ',') as Item

Resident a

group by receipt;

drop table a;

View solution in original post

2 Replies
maxgro
MVP
MVP

yes, with concat function

a:

load * inline [

receipt , Item

1, 200

1, 300

1, 250

];

b:

NoConcatenate load

receipt, concat(Item, ',') as Item

Resident a

group by receipt;

drop table a;

Not applicable
Author

Hi,

Use a char with next expression:

Concat(Item,',')

And thats all. See attached file, second sheet.

Best Regards.