<?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 transpose a file: invert rows in columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366675#M130136</link>
    <description>&lt;P&gt;Here is the structure of the file :&lt;BR /&gt;id|country_code|Country_name&lt;BR /&gt;1,2,3|cm,fr,us|Cameroon,France,United States&lt;BR /&gt;&lt;BR /&gt;We want to transform it to something like :&lt;BR /&gt;id|country_code|Country_name&lt;BR /&gt;1|cm|Cameroon&lt;BR /&gt;2|fr|France&lt;BR /&gt;3|us|United States&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's just a sample, the file we have is 6000 items&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 16:19:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-05T16:19:53Z</dc:date>
    <item>
      <title>transpose a file: invert rows in columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366675#M130136</link>
      <description>&lt;P&gt;Here is the structure of the file :&lt;BR /&gt;id|country_code|Country_name&lt;BR /&gt;1,2,3|cm,fr,us|Cameroon,France,United States&lt;BR /&gt;&lt;BR /&gt;We want to transform it to something like :&lt;BR /&gt;id|country_code|Country_name&lt;BR /&gt;1|cm|Cameroon&lt;BR /&gt;2|fr|France&lt;BR /&gt;3|us|United States&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's just a sample, the file we have is 6000 items&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 16:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366675#M130136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T16:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: transpose a file: invert rows in columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366676#M130137</link>
      <description>&lt;P&gt;Here is how I handle the issue :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job-talend.JPG" style="width: 673px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyXF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154628i11D15600C3E25309/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyXF.jpg" alt="0683p000009LyXF.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I use tJavaFlex to split each row&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tjavaflex.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyXK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141013i0CB3BAEA078CCE5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyXK.jpg" alt="0683p000009LyXK.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;That the data generated &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trowgenerator.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyJK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146347iA7CD63D2E54817AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyJK.jpg" alt="0683p000009LyJK.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 21:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366676#M130137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T21:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: transpose a file: invert rows in columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366677#M130138</link>
      <description>&lt;P&gt;you can achieve this with help of tnormalizerow and numeric sequence routine.&lt;/P&gt;
&lt;P&gt;using &lt;SPAN&gt;tnormalizerow and sequence routine&amp;nbsp; you will have to generate following&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;id seq&amp;nbsp; country code seq&amp;nbsp; &amp;nbsp; &amp;nbsp; country_name seq&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cm&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cameroon&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2&amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;france&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3&amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;united states&amp;nbsp; &amp;nbsp;3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;after this you can perform join operation on seq column&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and you will get&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;id|country_code|Country_name&lt;BR /&gt;1|cm|Cameroon&lt;BR /&gt;2|fr|France&lt;BR /&gt;3|us|United States&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is applicable for n number of records&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 11:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transpose-a-file-invert-rows-in-columns/m-p/2366677#M130138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-22T11:54:04Z</dc:date>
    </item>
  </channel>
</rss>

