Convert 2D table to cross-table

Highlighted
Four Stars

Convert 2D table to cross-table

I just would like to convert a 2D table (something like "list of registers")

 

field1 field2 value

...

SX  805  4
SX  806  9
SX  807  5
SL  805  2
SL  806  3
SL  807  6
...

 

to a cross-table


        SX  SL

...       ...   ...

805    4    2
806    9    3
807    5    6

...      ...   ...

 

Is it possible using Talend?


Accepted Solutions
Employee

Re: Convert 2D table to cross-table

Hi,

 

    Below are the component details.

image.png

 

 

Output is as shown below.

image.png

 

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

 


All Replies
Moderator

Re: Convert 2D table to cross-table

Hello,

With your job requirement, you can use component tPivotToColumnsDelimited to convert rows to columns.

For more information, please have a look at this component reference about:TalendHelpCenter:tPivotToColumnsDelimited.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: Convert 2D table to cross-table

Hi,

 

    Below are the component details.

image.png

 

 

Output is as shown below.

image.png

 

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog