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: 
ars
Contributor III
Contributor III

Export multple values in one field

Hi all,

 

I need to export a csv file that will consists of 4 fields, separered by "|" character.

But one of them must be contain multiple values, separated by ";" character.

 

For example, there will be 4 fields : FieldA, FieldB, FieldC, FieldD

I need to export records like this format:

|1|AAA|COMPONENT1;COMPONENT2;COMPONENT3|USER1

|2|BBB|COMPONENT1;COMPONENT2|USER2

|3|CCC|COMPONENT1;COMPONENT2;COMPONENT3;COMPONENT4;|USER3

|4|DDD|COMPONENT1;|USER4

 

Is there any way (component or code) to do that ? To "combine" multiple values into one field (FieldC) ?

 

Thank you in advance,

 

Ars 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

6 Replies
Anonymous
Not applicable

Take a look at the tDenormalize component. It is described here: https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/8qYPQFzXFh_ZnLulsMYOww

ars
Contributor III
Contributor III
Author

Dear rhall_2_0,

 

Yes !!! This is it !!!

 

Perfect - thank you very much for your reply.

 

Regards,

 

Ars

SachinD
Creator
Creator

HI,

 

Input

1|AAA|COMPONENT1|USER1
1|AAA|COMPONENT2|USER1
1|AAA|COMPONENT3|USER1
2|BBB|COMPONENT1|USER2
2|BBB|COMPONENT2|USER2

 

output

col1|col2|col3|col4 

1 |AAA |COMPONENT1;COMPONENT2;COMPONENT3|USER1
2 |BBB |COMPONENT1;COMPONENT2 |USER2

 

0683p000009Lqul.jpg0683p000009Lr0x.jpg

 

 

Anonymous
Not applicable

No problem. However you appear to have accepted your thank you note as the accepted solution.

ars
Contributor III
Contributor III
Author

Sorry, my mistake !!!

 

I fixed it 0683p000009MACn.png

 

Regards,

ars
Contributor III
Contributor III
Author

Dear sachinddhake,

 

Thank you for your contribution - especially because you spent time in order to reproduce my requirement !!!

 

Best regards,

 

Ars