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

How to Conacatenate field values based on another field.

for example

EMPID National_id

1          10

2           10

3            20

4            20

5            20

6            30

All the EMPIDs should be in single field value based on the National_id.

Out Put should be like

EMPID   National_id

1/2          10

3/4/5        20

6              30

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Try like below,

Load Concat(EMPID,'/') as EMPID, National_id Group by National_id;

LOAD * INLINE [

    EMPID, National_id

  1, 10

  2, 10

  3, 20

  4, 20

  5, 20

  6, 30];

View solution in original post

2 Replies
tamilarasu
Champion
Champion

Try like below,

Load Concat(EMPID,'/') as EMPID, National_id Group by National_id;

LOAD * INLINE [

    EMPID, National_id

  1, 10

  2, 10

  3, 20

  4, 20

  5, 20

  6, 30];

Not applicable
Author

Thanks Nagaraj

The issue got resolved.