<?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: How to unpivot a table? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355953#M121586</link>
    <description>Can someone please help me in this regard 
&lt;BR /&gt;I am having the same problem as mentioned above with number of columns where i cannt mention it as a Static String.so i canot use tsplitrow component as i have many columns in my table/file..
&lt;BR /&gt;
&lt;BR /&gt;I have some questions regarding the topic to unpivot a table in TOS-DI. I have a table like that:
&lt;BR /&gt;| ID | Column1 | Column2 | Column3 | ... | ColumnN |
&lt;BR /&gt;| 1 | ....... | ....... | ....... | ... | ....... |
&lt;BR /&gt;| 2 | ....... | ....... | ....... | ... | ....... |
&lt;BR /&gt;| ........................................................................ |
&lt;BR /&gt;I would like to get this as an output:
&lt;BR /&gt;| ID | Key | Value |
&lt;BR /&gt;| 1 | Column1 | ..... |
&lt;BR /&gt;| 1 | Column2 | ..... |
&lt;BR /&gt;..........
&lt;BR /&gt;| 1 | ColumnN | ..... |
&lt;BR /&gt;| 2 | Column1 | ..... |
&lt;BR /&gt;| 2 | ..... | ..... |
&lt;BR /&gt;| 2 | ColumnN | ..... |
&lt;BR /&gt;
&lt;BR /&gt;can you please help me with any easy solution?</description>
    <pubDate>Wed, 25 Jun 2014 08:08:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-25T08:08:32Z</dc:date>
    <item>
      <title>How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355948#M121581</link>
      <description>Hello together,&lt;BR /&gt;I have some questions regarding the topic to unpivot a table in TOS-DI. I have a table like that:&lt;BR /&gt;| ID | Column1 | Column2 | Column3 | ... | ColumnN |&lt;BR /&gt;|  1  | .......      | .......       | .......       | ... | .......       |&lt;BR /&gt;|  2  | .......      | .......       | .......       | ... | .......       |&lt;BR /&gt;| ........................................................................   |&lt;BR /&gt;I would like to get this as an output:&lt;BR /&gt;| ID | Key | Value |&lt;BR /&gt;|  1  | Column1 | ..... |&lt;BR /&gt;|  1  | Column2 | ..... |&lt;BR /&gt;..........&lt;BR /&gt;|  1  | ColumnN | ..... |&lt;BR /&gt;|  2  | Column1 | ..... |&lt;BR /&gt;|  2  | .....         | ..... |&lt;BR /&gt;|  2  | ColumnN | ..... |&lt;BR /&gt;..........&lt;BR /&gt;I have found a component named tUnPivotRow which seems to do this task. But I cannot get it to run in Talend 5.0.1, 5.3.0 or 4.2.2. I have set the ID column as a row key. In the schema of the component on the left side are the columns of the first table above. On the right side is the schema of the second table (three columns). All columns are of type String.&lt;BR /&gt;When I am running the task, I am getting a bunch of errors scattered over the whole Talend job. The first lines are "status cannot be resolved to a variable". So I think that the component is not suitable for my versions of TOS.&lt;BR /&gt;Or is there something I am doing wrong? Is it possible to get this task done with other components?</description>
      <pubDate>Tue, 04 Jun 2013 09:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355948#M121581</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-04T09:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355949#M121582</link>
      <description>Hi, 
&lt;BR /&gt;Perhaps the custom component 
&lt;A href="http://www.talendforge.org/exchange/index.php?eid=78&amp;amp;product=tos&amp;amp;action=view&amp;amp;nav=1,1,1" target="_blank" rel="nofollow noopener noreferrer"&gt;tTurnRow&lt;/A&gt; will satisfy your need 
&lt;BR /&gt;Please see the related forum 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqaGCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-tTurnRow-not-showing-on-pallet-in-talend-5-3-0/td-p/109840&lt;/A&gt; for details. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 04 Jun 2013 09:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355949#M121582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-04T09:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355950#M121583</link>
      <description>Hmm, thanks for your input, but I am afraid that is not what I want to do with my table. tTurnRow is turning the table 90° to the left and is mirroring it horizontally.
&lt;BR /&gt;But I want one of the columns (the first one with the ID) in the source table to be treated specially (it only gets duplicated in the result table), the other columns in the source table to be treated as keys in the result table, and the values in these columns in the source table to be treated as values in the result table.
&lt;BR /&gt;It's not the same, because with tTurnRow with a higher source table you would get a wider result table. But in my case the width of the result table would be always exactly three columns, because I want an ID-column, a key-column and a value-column.</description>
      <pubDate>Tue, 04 Jun 2013 10:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355950#M121583</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-04T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355951#M121584</link>
      <description>I got it done! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I managed to use a single tSplitRow for this task.&lt;BR /&gt;The schemas in the tSplitRow are the same as mentioned in my first post. When you click on the "+" under "columns mapping" on the basic properties of tSplitRow you should see the three columns of the output schema - in my case "ID", "key", "value".&lt;BR /&gt;You then hit on "+" as many times you have columns in your source table minus 1. In the three fields you put the following:&lt;BR /&gt;"ID" -&amp;gt; always inputRow.ID (replace "inputRow" with your source-link-name, for example "out14")&lt;BR /&gt;"key" -&amp;gt; always a static string with the name of one of the columns on the left side, for example "Column2"&lt;BR /&gt;"value" -&amp;gt; "inputRow.Column2" (replace "inputRow" with your source-link-name, for example "out14", and "Column2" with the name of your column)&lt;BR /&gt;Do that for each column in the source table as already mentioned, and you get the result at least I want. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 04 Jun 2013 10:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355951#M121584</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-06-04T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355952#M121585</link>
      <description>Hi, &lt;BR /&gt;It is a bizarre solution, thanks for sharing your experience with us.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 04 Jun 2013 11:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355952#M121585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-04T11:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355953#M121586</link>
      <description>Can someone please help me in this regard 
&lt;BR /&gt;I am having the same problem as mentioned above with number of columns where i cannt mention it as a Static String.so i canot use tsplitrow component as i have many columns in my table/file..
&lt;BR /&gt;
&lt;BR /&gt;I have some questions regarding the topic to unpivot a table in TOS-DI. I have a table like that:
&lt;BR /&gt;| ID | Column1 | Column2 | Column3 | ... | ColumnN |
&lt;BR /&gt;| 1 | ....... | ....... | ....... | ... | ....... |
&lt;BR /&gt;| 2 | ....... | ....... | ....... | ... | ....... |
&lt;BR /&gt;| ........................................................................ |
&lt;BR /&gt;I would like to get this as an output:
&lt;BR /&gt;| ID | Key | Value |
&lt;BR /&gt;| 1 | Column1 | ..... |
&lt;BR /&gt;| 1 | Column2 | ..... |
&lt;BR /&gt;..........
&lt;BR /&gt;| 1 | ColumnN | ..... |
&lt;BR /&gt;| 2 | Column1 | ..... |
&lt;BR /&gt;| 2 | ..... | ..... |
&lt;BR /&gt;| 2 | ColumnN | ..... |
&lt;BR /&gt;
&lt;BR /&gt;can you please help me with any easy solution?</description>
      <pubDate>Wed, 25 Jun 2014 08:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355953#M121586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-25T08:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to unpivot a table?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355954#M121587</link>
      <description>small hint
&lt;BR /&gt;JSON file can give you this key value pair
&lt;BR /&gt;Thanks
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 25 Jun 2014 08:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-unpivot-a-table/m-p/2355954#M121587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-25T08:44:41Z</dc:date>
    </item>
  </channel>
</rss>

