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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
DEMONIO_AZUL
Contributor III
Contributor III

Getting text from one table and list it in another with commas...

Hello there,
I have two tables, Document Table and Comment Table.
Document Table has rows with information, and the only thing I can get from this table is if each document has comments or not. The comments are in the Comment Table. 

I am trying to get, for example, if Document A has comments, then I need all Comments listed in the Target Table, as follows:

2026-03-23 14_05_38-DFD-Qlik-FInd comments and list them-260323.xlsx - Excel.png 

Any ideas on how to achieve this will be appreciated.

Thank you!

Labels (1)
1 Solution

Accepted Solutions
WeLoveQlik
Partner - Creator
Partner - Creator

If I am understanding this correctly.

First, you need to create a key between Document table and Comment table since that doesnt exist.

It looks to me like that key is Document and the first letter on the comment table.

 

So, to create that key on the comment table side and then create your final table I would do the following

TargetTable:

LOAD Document

From DocumentTable.qvd(qvd)

WHERE Has Comment = 'Y';

 

LEFT JOIN (TargetTable)

LOAD LEFT(Comment,1) as Document

           CONCAT(Comment,',') as Comment(s)

From CommentTable.qvd(qvd)

Group by LEFT(Comment,1);

 

IPC Global: ipc-global.com

View solution in original post

2 Replies
WeLoveQlik
Partner - Creator
Partner - Creator

If I am understanding this correctly.

First, you need to create a key between Document table and Comment table since that doesnt exist.

It looks to me like that key is Document and the first letter on the comment table.

 

So, to create that key on the comment table side and then create your final table I would do the following

TargetTable:

LOAD Document

From DocumentTable.qvd(qvd)

WHERE Has Comment = 'Y';

 

LEFT JOIN (TargetTable)

LOAD LEFT(Comment,1) as Document

           CONCAT(Comment,',') as Comment(s)

From CommentTable.qvd(qvd)

Group by LEFT(Comment,1);

 

IPC Global: ipc-global.com
DEMONIO_AZUL
Contributor III
Contributor III
Author

This is perfect. Thank you @WeLoveQlik !!