<?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 to Rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364933#M128613</link>
    <description>i'm still searching the directory to copy the component.</description>
    <pubDate>Thu, 12 Jan 2012 00:46:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-12T00:46:40Z</dc:date>
    <item>
      <title>Transpose Column to Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364931#M128611</link>
      <description>Hi, 
&lt;BR /&gt;how to transpose table as below 
&lt;BR /&gt;INPUT : 
&lt;BR /&gt;NOID RANK YEAR1 YEAR2 YEAR3 
&lt;BR /&gt;122A 1 15 12 13 
&lt;BR /&gt;122A 2 12 10 11 
&lt;BR /&gt;122B 1 13 11 12 
&lt;BR /&gt;122B 2 19 11 15 
&lt;BR /&gt; 
&lt;BR /&gt;TRANSPOSE TO OUTPUT: 
&lt;BR /&gt; 
&lt;BR /&gt;NOID RANK YEAR AMOUNT 
&lt;BR /&gt;122A 1 1 15 
&lt;BR /&gt;122A 1 2 12 
&lt;BR /&gt;122A 1 3 13 
&lt;BR /&gt;122A 2 1 12 
&lt;BR /&gt;122A 2 2 10 
&lt;BR /&gt;122A 2 3 11 
&lt;BR /&gt;122B 1 1 13 
&lt;BR /&gt;122B 1 2 11 
&lt;BR /&gt;122B 1 3 12 
&lt;BR /&gt;122B 2 1 19 
&lt;BR /&gt;122B 2 2 11 
&lt;BR /&gt;122B 2 3 15 
&lt;BR /&gt; 
&lt;BR /&gt;for information currently i'm using version 4.1.2 but i can't see compenent tPivotToRows.Please advise.TQ</description>
      <pubDate>Sat, 16 Nov 2024 12:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364931#M128611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column to Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364932#M128612</link>
      <description>Hi&lt;BR /&gt;Try to download &lt;A href="http://www.talendforge.org/exchange/index.php?eid=148&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" target="_blank" rel="nofollow noopener noreferrer"&gt;tUnPivotRow&lt;/A&gt; at &lt;A href="http://www.talendforge.org/exchange/index.php" target="_blank" rel="nofollow noopener noreferrer"&gt;Exchange&lt;/A&gt;.&lt;BR /&gt;tUnPivot will change columns into rows.&lt;BR /&gt;Deploy a new component&lt;BR /&gt;Specify a ?User components folder? in TOS preferences (preferences/Talend/Components)&lt;BR /&gt;Copy your newly downloaded component folder in the user components folder&lt;BR /&gt;After launch, you should see your component in folder ?components/user? in org.talend.designer.components.localprovider plugin&lt;BR /&gt;your component should also appear in the Palette in the job designer (in a family folder if relevant)&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 11 Jan 2012 09:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364932#M128612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-11T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column to Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364933#M128613</link>
      <description>i'm still searching the directory to copy the component.</description>
      <pubDate>Thu, 12 Jan 2012 00:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364933#M128613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T00:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column to Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364934#M128614</link>
      <description>Hi
&lt;BR /&gt;Specify a ?User components folder? in TOS preferences (preferences/Talend/Components).
&lt;BR /&gt;For example, set "C:\UserComponents\".
&lt;BR /&gt;Create a directory called "tUnPivotRow" in "C:\UserComponnets\".
&lt;BR /&gt;Unzip the downloaded zip file and copy the four files into "C:\UserComponnets\tUnPivotRow".
&lt;BR /&gt;Now open preferences/Talend/Components in TOS.
&lt;BR /&gt;And click "apply" button.
&lt;BR /&gt;Wait a moment.
&lt;BR /&gt;You can get tUnPivotRow component in TOS pallete.
&lt;BR /&gt;And i have tested it which works fine in TOS5.0.1.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 12 Jan 2012 02:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364934#M128614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-12T02:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column to Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364935#M128615</link>
      <description>Hello 
&lt;BR /&gt;Just try the sample as described in screenshot 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;but doesn't work... on 5.0.2 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in thread "main" java.lang.Error: Problèmes de compilation non résolus : &lt;BR /&gt;	id_shop ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	id_product ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	id_prod ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	year ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	month ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	pivot_key ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	pivot_value ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	pivot_value ne peut pas être résolu ou n'est pas un champ&lt;BR /&gt;	Erreur de syntaxe, insérez "}" pour effectuer Bloc&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 04 Apr 2012 11:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364935#M128615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-04T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose Column to Rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364936#M128616</link>
      <description>Use this approach. Treat everything as Strings and not Numbers. Convert back later if neeeded as Numbers: 
&lt;BR /&gt;- use tMap to contactenate the Year amounts into a single field so your output from tMap is 3 columns as follows: 
&lt;BR /&gt;NOID -&amp;gt; NOID 
&lt;BR /&gt;RANK -&amp;gt; RANK 
&lt;BR /&gt;AMOUNT -&amp;gt; Year1 +","+ Year2 +","+ Year3" 
&lt;BR /&gt;- use tNormalize to normalise the data on "AMOUNT". This will result in a row of data in the format: 
&lt;BR /&gt;"NOID","RANK","AMOUNT" 
&lt;BR /&gt;So for the First row, the result is 3 rows: 
&lt;BR /&gt;122A,1,15 
&lt;BR /&gt;122A,1,12 
&lt;BR /&gt;122A,1,13 
&lt;BR /&gt;Now take each of these rows through tMap and add the "YEAR" column. The value of the Year column will be a Modulo of the Row number, so use a ternary expression with a Sequence Number variable: 
&lt;BR /&gt;Declare variable in tMAP -&amp;gt; Numeric.Sequence("s1",1,1) -&amp;gt; Var.Var1 
&lt;BR /&gt;Use the Expression in the Year output schema value: 
&lt;BR /&gt;((Var.var1 % 3) == 0) ? 3 : (Var.var1 % 3) 
&lt;BR /&gt;This will result in the final output: 
&lt;BR /&gt;"NOID","RANK","YEAR","AMOUNT" 
&lt;BR /&gt;122A,1,1,15 
&lt;BR /&gt;122A,1,2,12 
&lt;BR /&gt;122A,1,3,13 
&lt;BR /&gt;122A,2,1,12 
&lt;BR /&gt;122A,2,1,10 
&lt;BR /&gt;122A,2,1,11 
&lt;BR /&gt;... 
&lt;BR /&gt;etc. 
&lt;BR /&gt;See image</description>
      <pubDate>Wed, 04 Apr 2012 11:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Transpose-Column-to-Rows/m-p/2364936#M128616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-04T11:45:59Z</dc:date>
    </item>
  </channel>
</rss>

