Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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.