Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Convert columns to rows or rows to columns ...

I have array 

type Content
1 toto
2 titre1
1 toto
2 12345678
1 toto
2 fdt12345678
3 fdt.pdf
1 toto
2 fdt
3 fdt12345678.pdf

 

and I want to convert it into 

1 2 3
toto titre1  
toto 12345678  
toto fdt12345678 fdt.pdf
toto fdt fdt12345678.pdf

 

 

Any Idea ? 

I am still in Talend version 5.6 ...

Thank you for your help.

 

 

Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi Damien,

 

Please follow the below job design to get your requirement.

 

Remeber to put the same delimiter and file name for the columns from tPivotToColumnsDelimited to the next tFileInputDelimited.

 

0683p000009M5GR.jpg0683p000009M62u.jpg0683p000009M634.jpg0683p000009M639.jpg0683p000009M63E.jpg0683p000009M63J.jpg

 

Thanks and Regards,

Subhadip

Anonymous
Not applicable
Author

 followed https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/9HBFF9ml06PWtPoPiKa7KA

 with 

id question answer
0 1 toto
0 2 titre1
1 1 toto
1 2 12345678
2 1 toto
2 2 fdt12345678
2 3 fdt.pdf
3 1 toto
3 2 fdt
3 3

fdt12345678.pdf

 

And the result is

id 1 2 3
3 toto fdt fdt12345678.pdf

 

I only have the last record !!!

Anonymous
Not applicable
Author

Bonjour and thank you for your help. Can you detail what you have in the tPivotToColumnsDelimited ... I tried to follow the process described (see link from Talend web site) but I only have the "last" record ... as in the exemple from Talend, they have all lines.
regards
Damien
Anonymous
Not applicable
Author

Hi Damien,

 

Please follow the screenshot as provided, with the proper columns in proper places..

 

Also please follow the job flow.0683p000009M5z8.jpg


0683p000009M64H.jpg