<?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 Re: Transpose Column names in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346881#M114229</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I assumed we always have these key value pairs in the same order : (id,name,age). without any skip in the keys. (i.e. there wont be any id without name and age ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With this assumption, i written in &amp;nbsp;a simple logic to solve this issue.&lt;BR /&gt;&lt;BR /&gt;Go through it and revert me back. I have not used any in memory components like thashoutput/ tbufferedoutput( instead i using temp file approach)&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lr9C"&gt;ttranspose.zip&lt;/A&gt;</description>
    <pubDate>Wed, 20 Sep 2017 14:50:14 GMT</pubDate>
    <dc:creator>ashif2</dc:creator>
    <dc:date>2017-09-20T14:50:14Z</dc:date>
    <item>
      <title>Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346876#M114224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to Talend. Could any one please help for the below use case. How to perform this use case. I&lt;/P&gt;
&lt;P&gt;Input:&lt;/P&gt;
&lt;P&gt;id : 01&lt;/P&gt;
&lt;P&gt;name:aaaa&lt;/P&gt;
&lt;P&gt;age:29&lt;/P&gt;
&lt;P&gt;id:02&lt;/P&gt;
&lt;P&gt;name:bbbb&lt;/P&gt;
&lt;P&gt;age:25&lt;/P&gt;
&lt;P&gt;id:03&lt;/P&gt;
&lt;P&gt;name:cccc&lt;/P&gt;
&lt;P&gt;age:30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID;NAME;AGE&lt;/P&gt;
&lt;P&gt;01;AAAA:29&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;02;BBBB:25&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;03;CCCC:30&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346876#M114224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346877#M114225</link>
      <description>&lt;P&gt;I assume the data you have shown is the format you would expect it to arrive in? If it is, then the main body of what is needed is covered in this tutorial (&lt;A href="https://www.rilhia.com/tutorials/dynamic-column-order" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/dynamic-column-order&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially, with every row you are getting two values; the column header and value. Read these values in from your file as column header and value. Then use tMap variables (as I have done in the tutorial) to retrieve the correct value for each output column. Since the tMap variables hold their values between rows, your first row will just have your ID, the second value will have the ID and the name, the third row will have the ID, name and age. Since we know this, you can use a tAggregateRow after the tMap to group this data by ID. We know that only the last row per ID will hold all of the data. Therefore your tAggregateRow will group by ID and return the LAST value for the name and age. If configured correctly, you will end up with single rows for each of your records.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 15:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346877#M114225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-18T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346878#M114226</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU" target="_self"&gt;@rhall&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Thanks for your reply. This is not dynamic column issue. Column names are coming as rows with values with (: ) separator.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Like wise I have millions of records.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;Here ID, Name and age are column names which are in row wise with their values separated by : and want to transpose the column names as headers and below the relevant values of particular column.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;first record:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;ID:&lt;/FONT&gt; 100&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;Name:&lt;/FONT&gt; AAA&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;Age:&lt;/FONT&gt;30&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Second Record&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;ID:&lt;/FONT&gt; 101&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;Name:&lt;/FONT&gt;BBB&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;Age&lt;/FONT&gt; : 32&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Third Record&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;ID&lt;/FONT&gt;: 102&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;Name&lt;/FONT&gt;:CCC&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class=""&gt;&lt;FONT color="#FF0000"&gt;Age&lt;/FONT&gt; : 26&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Output:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;ID; Name; Age&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;100;AAA;30&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;101;BBB;32&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;102;CCC;26&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Regards,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 06:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346878#M114226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-19T06:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346879#M114227</link>
      <description>&lt;P&gt;Try out what I suggested, it will work. The tutorial merely shows the kind of process you need, I followed that up with a description of what you would need to do in order to solve this scenario.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346879#M114227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-19T09:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346880#M114228</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is like normalization in informatica which is not available directly in talend.&lt;/P&gt; 
&lt;P&gt;So here is turnaround&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 708px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr6i.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145739i086F7D63FCCA8446/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr6i.png" alt="0683p000009Lr6i.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Use tmemorizerows to store last three row values as values are repeatating after 3 rows&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 895px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142816i9A539D451DAD27D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrAF.png" alt="0683p000009LrAF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then in tjavaFlex get every 3rd value from tmemorize with following code in main&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;(i%3==0)&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;row3.Column0=(((String[]) globalMap.get("tMemorizeRows_1_Column1"))[2]);&lt;/P&gt; 
&lt;P&gt;row3.Column1=(((String[]) globalMap.get("tMemorizeRows_1_Column1"))[1]);&lt;/P&gt; 
&lt;P&gt;row3.Column2=(((String[]) globalMap.get("tMemorizeRows_1_Column1"))[0]);&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;row3.Column0= &lt;STRONG&gt;null&lt;/STRONG&gt;;&lt;/P&gt; 
&lt;P&gt;row3.Column1= &lt;STRONG&gt;null&lt;/STRONG&gt;;&lt;/P&gt; 
&lt;P&gt;row3.Column2= &lt;STRONG&gt;null&lt;/STRONG&gt;;&lt;/P&gt; 
&lt;P&gt;};&lt;/P&gt; 
&lt;P&gt;i++;&lt;/P&gt; 
&lt;P&gt;Declare variable in start code part as in picture&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 862px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr8F.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130162i374CDC10B6E4C785/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr8F.png" alt="0683p000009Lr8F.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As there will be null rows for 1st and 2nd rows from source filter those in tfilterrow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 896px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr5z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156078i1B140ECA3B5AA24D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr5z.png" alt="0683p000009Lr5z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346880#M114228</guid>
      <dc:creator>shivanand</dc:creator>
      <dc:date>2017-09-20T13:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346881#M114229</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I assumed we always have these key value pairs in the same order : (id,name,age). without any skip in the keys. (i.e. there wont be any id without name and age ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With this assumption, i written in &amp;nbsp;a simple logic to solve this issue.&lt;BR /&gt;&lt;BR /&gt;Go through it and revert me back. I have not used any in memory components like thashoutput/ tbufferedoutput( instead i using temp file approach)&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lr9C"&gt;ttranspose.zip&lt;/A&gt;</description>
      <pubDate>Wed, 20 Sep 2017 14:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346881#M114229</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2017-09-20T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346882#M114230</link>
      <description>I'm a little confused about the increasing complexity and memory usage of the offered solutions. If we can assume that the record sets will appear in order (ie set 1 after set 2... forgetting about column header order), we can do this in 4 components; an input component, a tmap, a tAggregateRow and an output component. If you need to sort the order, then 5 components (a tSort after the input). There is no need for complicated java or to memorize anything but the last calculated row (which can be handled by the tMap).</description>
      <pubDate>Wed, 20 Sep 2017 23:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346882#M114230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T23:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346883#M114231</link>
      <description>&lt;P&gt;You are right . I made the code complicated. Actually I thought of using variables of tmap but not proceeded that way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN class=""&gt;for your valuable suggestion .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lqqo"&gt;TransPose_Made_Easy.JPG&lt;/A&gt;</description>
      <pubDate>Thu, 21 Sep 2017 05:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-names/m-p/2346883#M114231</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2017-09-21T05:40:56Z</dc:date>
    </item>
  </channel>
</rss>

