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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Different values in one row

Hi!

I have many clientIDs linked to every sales manager.

I created the simple table below:

  

sales manageremailclientID
Davidd@d.com1
Davidd@d.com2
Davidd@d.com3
Davidd@d.com4
Sauls@s.com5
Sauls@s.com6

I would like to create this table, and put all the clientIDs in the same row, for every sales manager:

  

sales manageremailclientID
Davidd@d.com1,2,3,4
Sauls@s.com5,6

thanks ,

Naama

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

Try this:

Table:

LOAD [sales manager],

          Only(email) as email,

          Concat(clientID, ', ') as clientID

From Source

Group By [sales manager];

sunny_talwar
MVP
MVP

For your sample:

Table:

LOAD [sales manager],

          Only(email) as email,

          Concat(clientID, ',') as clientID

Group By [sales manager];

LOAD [sales manager],

    email,

    clientID

FROM

[https://community.qlik.com/thread/193637]

(html, codepage is 1252, embedded labels, table is @1);


Capture.PNG

anlonghi2
Creator II
Creator II

Hello Naamamor,

use Sales manager and email as dimensions of a straight table and define the expression as concat(clientID,',')

Look at attached qvw

Best regards

Andrea