Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
mani1304
Creator
Creator

Split the data

Hi there,

I have a requirement that if a semilcolon comes in a record, it should break into number of records but those fields are in the middle. e.g. if record is 100|a-- good to go, but if record is 100|a;,b;c;d then it should break into 4 records as 100|a,100|b,100|c,100|d

Please suggest.

Labels (3)
4 Replies
Anonymous
Not applicable

Have you tried tNormalize component? I think you can check if the data contains a semicolon and filter the data, use tNormalize to split the data if it contains a semicolon.

 

Regards

Shong

mani1304
Creator
Creator
Author

Thanks Shong, sorry for the delay response but for the time I got some work around for this but I forgot to mention that this has a lot of columns and the required column is in middle somewhere so I don't think tNormalize for this, Is there something else which can be done here.

Anonymous
Not applicable

@Manish Mishra​, I don’t understand you emphasize that these required column is in the middle somewhere. It would be appreciated if you can share your workaround on the community.

 

Regards

Shong

madhukolli2003
Contributor III
Contributor III

Hi @Manish Mishra​ ,

tNormalize can split the value into multiple rows irrespective of column position.

Only limitation is it can only apply on single column.

Please refer below example .0693p000009s7Q9AAI.jpg

 

0693p000009s7VdAAI.jpg

 

0693p000009s7WUAAY.jpg

 

Thanks & Regards,

Madhu Kolli