<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to convert one column values to multiple columns in talend? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-one-column-values-to-multiple-columns-in-talend/m-p/2253288#M36667</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a input data like this:&lt;/P&gt;&lt;PRE&gt;Title	Value
A	5
B	4
C	7
D	10
E	8&lt;/PRE&gt;&lt;P&gt;And how can I convert my Title column values to multiple column and tag the value to it?&lt;/P&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;PRE&gt;A	B	C	D	E
5	4	7	10	8&lt;/PRE&gt;&lt;P&gt;I tried tDenormalize but got same output like my input, since all title values are unique already to denormalize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried tMap to transform my data, but got like this below:&lt;/P&gt;&lt;PRE&gt;A	B	C	D	E
5	5	5	5	5
4	4	4	4	4
7	7	7	7	7
10	10	10	10	10
8	8	8	8	8&lt;/PRE&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:57:27 GMT</pubDate>
    <dc:creator>dattasud</dc:creator>
    <dc:date>2024-11-16T02:57:27Z</dc:date>
    <item>
      <title>How to convert one column values to multiple columns in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-one-column-values-to-multiple-columns-in-talend/m-p/2253288#M36667</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a input data like this:&lt;/P&gt;&lt;PRE&gt;Title	Value
A	5
B	4
C	7
D	10
E	8&lt;/PRE&gt;&lt;P&gt;And how can I convert my Title column values to multiple column and tag the value to it?&lt;/P&gt;&lt;P&gt;Desired output:&lt;/P&gt;&lt;PRE&gt;A	B	C	D	E
5	4	7	10	8&lt;/PRE&gt;&lt;P&gt;I tried tDenormalize but got same output like my input, since all title values are unique already to denormalize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried tMap to transform my data, but got like this below:&lt;/P&gt;&lt;PRE&gt;A	B	C	D	E
5	5	5	5	5
4	4	4	4	4
7	7	7	7	7
10	10	10	10	10
8	8	8	8	8&lt;/PRE&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-one-column-values-to-multiple-columns-in-talend/m-p/2253288#M36667</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2024-11-16T02:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert one column values to multiple columns in talend?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-one-column-values-to-multiple-columns-in-talend/m-p/2253289#M36668</link>
      <description>&lt;P&gt;I solved this problem by writing custom code using tJavaFlex. I created my desired columns in tJavaFlex (output). Then on main code loop I used if else statement to populate the values based on input rows. I found out that my last row of the tJavaFlex output is accurate with proper values. So, I used tSortrow (created a counter column and incremented it) with desc and used tSampleRow to take the last row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above is one approach to solve this problem. If anyone finds better and efficient approach, please share.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 14:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-one-column-values-to-multiple-columns-in-talend/m-p/2253289#M36668</guid>
      <dc:creator>dattasud</dc:creator>
      <dc:date>2020-03-18T14:28:22Z</dc:date>
    </item>
  </channel>
</rss>

