Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ankit7359
Creator II
Creator II

Rows to Columns!!!!

Hi All,

Greetings of the Day,

There is a scenario i came across where the rows of a delimited file must be converted as columns.

Here is the input:

Col1
A:100
B:200
C:300

Here is the expected Output:

A | B |C

100|200|300

I have tried by using tDenormalize but it was of no use.

Pls do help.

Thanks,

Ankit

Labels (2)
1 Solution

Accepted Solutions
Ganshyam
Creator II
Creator II

Hello,

Below screenshot for each component and attached is talend job desing (v7.0.1).

Please make changes accordingly

 

0683p000009M1vN.png0683p000009M27g.png0683p000009M27v.png0683p000009M280.png0683p000009M285.png

 

Regards

Ganshyam


tdenormalize.zip

View solution in original post

12 Replies
akumar2301
Specialist II
Specialist II

 tPivotToColumnsDelimited

ankit7359
Creator II
Creator II
Author

hey @uganesh,

thanks for your reply.. 

but i couldnt get the desired output even then...

by using tpivottocolumnsdelimited..

the below is the output i m getting.. 

Col1;A:100;B:200;C:300
A:100;A:100;;
B:200;;B:200;
C:300;;;C:300

I have also tried a workaround by extracting the delimited fields and then denormalising it but even then i could get it.

Thanks,

Ankit.

Ganshyam
Creator II
Creator II

Hello,

 

 

0683p000009M25a.png

 

Some workaround , but might solve your purpose.

 

Regard

Ganshyam

ankit7359
Creator II
Creator II
Author

hi @Ganshyam,

Greetings of the day,

As per your workaround can you pls tell me why tmap was used are you trying to write some logic in them ??

Can you pls explain your workaround process breifly??

Thanks,

Ankit

Ganshyam
Creator II
Creator II

Hello,

Yes, I have written logic in tmap to separate the string using string handling functions.

 Once the string are separated used tdenoramlize component to get the desired output.

 

Regards

 

 

ankit7359
Creator II
Creator II
Author

Hi @Ganshyam,

Thanks for your reply,

i too have tried your scenario,but i couldnt get the output.. 

Can you pls help me find out where i missed.

Pls refer to the below attached screenshots.

0683p000009M26n.pngtunite settings0683p000009M21A.pngtdenormalise settings0683p000009M25g.pngTmap settings0683p000009M1uo.pngJob design

0683p000009M1rA.pngOutput

Pls do point out where i have missed.. 

Thanks,

Ankit

akumar2301
Specialist II
Specialist II

Hello Ankit ,

 

Please try once tTranspose . It is a custom component. This might work for you.

 

https://community.talend.com/t5/Design-and-Development/How-to-transpose-Rows-to-Columns-in-Excel/td-...

 

 

 

Ganshyam
Creator II
Creator II

Hello ,

Below are the logic used in tmap and tdenormalize component.

 

0683p000009M26s.png0683p000009M1vb.png0683p000009M26x.png

 

Please check it and make necessary changes.

 

Regards

Ganshyam

ankit7359
Creator II
Creator II
Author

Hi @uganesh,

i dont think there is tTranspose component as of Talend 6.3.

Though it is a custom component, i dont think it exists.

Thanks,

Ankit