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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

group table field into list inside a field

I want to take a table group it by a few fields and create a list from another field.  Below is an example of what I am trying to accomplish in my script:

documentusersheet
atedsh1
btedsh2
ctedsh3
atedsh1
btedsh2
cstevesh3
astevesh1
bstevesh2
cstevesh3
astevesh4

From a table like the one above I want to build a table like the one below.

Header 1Header 2Header 3
atedsh1,sh1
btedsh2,sh2
ctedsh3
astevesh1,sh4
bstevesh2
cstevesh3,sh3
1 Solution

Accepted Solutions
simenkg
Specialist
Specialist

Table2:

Load distinct

     document as [Header 1],

     user as [Header 2],

     concat(distinct sheet,',') as [Header 3]

     resident Table1

     Group by document, user;

View solution in original post

1 Reply
simenkg
Specialist
Specialist

Table2:

Load distinct

     document as [Header 1],

     user as [Header 2],

     concat(distinct sheet,',') as [Header 3]

     resident Table1

     Group by document, user;