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

Labels (1)
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.