Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
RRR1
Contributor

How to concatenate the field values?

Hi experts,

I am having the following requirement.

P_ID, P_Name

1, a

1, b

2, c

2, d

2, e

2, f

 

Desired Output as follow:

P_ID, P_Name

1, a:b
2, c:d:e:f

Can you please help us to implement the same.

 

Thanks in advance.

 

Regards,

Ranjith.

 

 

 

Labels (2)
1 Reply
PrashantSangle

where do you want this in front end or back end script

1: front End

take table

dimension > P_ID

Measure > concat(P_Name,':')

 

2: back end Script > try below script

Load P_ID,Concat(P_Name,':') as P_Name group by P_ID;
Load * Inline [
P_ID, P_Name
1, a
1, b
2, c
2, d
2, e
2, f
];

 

Regards,

Prashant Sangle

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂