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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Table Format

Hi,

I am currently having difficulty in changing a table format in a load script: -

Natural Format:

KeyComment
ATest 1
BTest 2
CTest 3
DTest 4
BTest 5
ATest 6
CTest 7
ATest 8

Required Format:

KeyComment
A Test 1 Test 6 Test 8
BTest 2 Test 5
CTest 3 Test 7
DTest 4

Ive tried using the peek() command but I just don't seem to be able to get it to work.  Any advise would be very much appreciated.

Many thanks in advance.

1 Solution

Accepted Solutions
prieper
Master II
Master II

CONCAT should help:

LOAD

Key,

CONCAT(Comment, ', ')     AS Comment

FROM ....

GROUP BY

Key;

HTH
Peter

View solution in original post

2 Replies
prieper
Master II
Master II

CONCAT should help:

LOAD

Key,

CONCAT(Comment, ', ')     AS Comment

FROM ....

GROUP BY

Key;

HTH
Peter

Not applicable
Author

Peter,

This works perfectly.  Many thanks for your help.