• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » how to transform column values to row values of an excel file

#1 2011-03-19 09:49:25

abbes
New member
Registered: 2011-03-19
Posts: 9

how to transform column values to row values of an excel file

hello, I have a problem with transforming columns input to rows output.I have an excel file containing 1 row of 30
columns and I would transforming this file to a file containing 1 column of 30 rows(each row value in the output
file is the column name in the source file).
Example:
a source table contains 5 columns A,B,C,D,E and no rows(this means 1 row wich represent the columns name).the output file would be contain 1 column named for example 'Date' and its values is A,B,C,D,E(wich the columns name of the source file).
if there is any component or any way to do this help me svp.
regards.

Offline

#2 2011-03-19 11:26:49

kzone
Member
Company: Synotis
Registered: 2008-07-06
Posts: 911
Website

Re: how to transform column values to row values of an excel file

hi,

have a look at processing componenet normalize & denormalize.
it should help you

regards
laurent


Uploaded Images

Last edited by kzone (2011-03-19 11:27:10)


do Svg your graphical language !!!

Offline

#3 2012-04-17 07:30:18

Lilth
Guest

Re: how to transform column values to row values of an excel file

Hello,

I have the exact requirement as mentioned by the thread starter. But nothing is working, as in, I have tried tDenormalize, tUnpivotRow, tSplitRow. I have to fetch the column headers i.e A,B,C,D,E and store these as row values
New_Col
A
B
C
D
E

Can anyone share some light on this topic..??

Regards,
Lilth

#4 2012-04-17 08:12:35

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: how to transform column values to row values of an excel file

Hi Lilth

Could you show us the sample data of your file?

The example you made is not accurate.

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-04-17 08:24:18

Lilth
Guest

Re: how to transform column values to row values of an excel file

Hi Pedro,

Here is my sample data:

product_class    product    brand_name_place    product_name_type
30    1    Washington    Washington Berry Juice
52    2    Washington    Washington Mango Drink
52    3    Washington    Washington Strawberry Drink
19    4    Washington    Washington Cream Soda

My column headers are product_class, product, brand_name_place and product_name_type.

I need to store these as
Column_Name
product_class
product
brand_name_place
product_name_type

where Column_Name is the column_header and the rest are row values in another file.

Regards,
Lilth

#6 2012-04-17 08:36:14

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: how to transform column values to row values of an excel file

Hi Lilth

You might create a job as the following images.

Regards,
Pedro


Uploaded Images


Only Paranoid Survive.

Offline

#7 2012-04-17 09:10:24

Lilth
Guest

Re: how to transform column values to row values of an excel file

That works..!! smile

Thanks a lot Pedro, this was what I was actually looking for.

Regards,
Lilth

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » how to transform column values to row values of an excel file

Board footer

Powered by FluxBB