<?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 Iterate through rows and pivot / transpose rows and columns. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Iterate-through-rows-and-pivot-transpose-rows-and-columns/m-p/2259955#M41261</link>
    <description>&lt;P&gt;Hello folks,&lt;BR /&gt;I’m very new to Talend and I’m having a great deal of difficulty accomplishing what seems to be to be a very simple task.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The fundamental objective is to take data from a set of Excel spreadsheets and move the data into a database. The job(s) will be triggered when a new XLSX file is dropped into an identified directory.&lt;/P&gt; 
&lt;P&gt;The Excel file has 15 different worksheets, and each worksheet has a different schema. There are a total of 700 to 800 columns total amongst the 15 worksheets.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tFileInputExcel component appears to be limited to one schema across all of the worksheets so I am using the tFileExcel-Components from Jan Lolling which allows for different schemas to be used.&lt;BR /&gt;When a new file is dropped into the directory, the process iterates through the worksheets. Each worksheet is sent to a tMap component so that the specific worksheet is assigned its associated schema from the schema repository. This is where I’m running into the issue that I need help with.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;For each row in the worksheet, I need to transpose the rows and columns in such a way that the column name and associated row value are output.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;For example, if I have the following data as input:&lt;BR /&gt;Column1 Column2 Column3 Column4&lt;BR /&gt;RowValue1 RowValue2 RowValue3 RowValue4&lt;BR /&gt;RowValue5 RowValue6 RowValue7 RowValue8&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output would be:&lt;BR /&gt;Column1 RowValue1&lt;BR /&gt;Column2 RowValue2&lt;BR /&gt;Column3 RowValue3&lt;BR /&gt;Column4 RowValue4&lt;BR /&gt;Column1 RowValue5&lt;BR /&gt;Column2 RowValue6&lt;BR /&gt;Column3 RowValue7&lt;BR /&gt;Column4 RowValue8&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I’ve looked at a number of different posts about issues that appear to be similar to this, but I’m not finding a solution that will work for me.&lt;BR /&gt;All help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 15:59:18 GMT</pubDate>
    <dc:creator>ecurren-lmi</dc:creator>
    <dc:date>2020-05-18T15:59:18Z</dc:date>
    <item>
      <title>Iterate through rows and pivot / transpose rows and columns.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterate-through-rows-and-pivot-transpose-rows-and-columns/m-p/2259955#M41261</link>
      <description>&lt;P&gt;Hello folks,&lt;BR /&gt;I’m very new to Talend and I’m having a great deal of difficulty accomplishing what seems to be to be a very simple task.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The fundamental objective is to take data from a set of Excel spreadsheets and move the data into a database. The job(s) will be triggered when a new XLSX file is dropped into an identified directory.&lt;/P&gt; 
&lt;P&gt;The Excel file has 15 different worksheets, and each worksheet has a different schema. There are a total of 700 to 800 columns total amongst the 15 worksheets.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tFileInputExcel component appears to be limited to one schema across all of the worksheets so I am using the tFileExcel-Components from Jan Lolling which allows for different schemas to be used.&lt;BR /&gt;When a new file is dropped into the directory, the process iterates through the worksheets. Each worksheet is sent to a tMap component so that the specific worksheet is assigned its associated schema from the schema repository. This is where I’m running into the issue that I need help with.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;For each row in the worksheet, I need to transpose the rows and columns in such a way that the column name and associated row value are output.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;For example, if I have the following data as input:&lt;BR /&gt;Column1 Column2 Column3 Column4&lt;BR /&gt;RowValue1 RowValue2 RowValue3 RowValue4&lt;BR /&gt;RowValue5 RowValue6 RowValue7 RowValue8&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output would be:&lt;BR /&gt;Column1 RowValue1&lt;BR /&gt;Column2 RowValue2&lt;BR /&gt;Column3 RowValue3&lt;BR /&gt;Column4 RowValue4&lt;BR /&gt;Column1 RowValue5&lt;BR /&gt;Column2 RowValue6&lt;BR /&gt;Column3 RowValue7&lt;BR /&gt;Column4 RowValue8&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I’ve looked at a number of different posts about issues that appear to be similar to this, but I’m not finding a solution that will work for me.&lt;BR /&gt;All help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterate-through-rows-and-pivot-transpose-rows-and-columns/m-p/2259955#M41261</guid>
      <dc:creator>ecurren-lmi</dc:creator>
      <dc:date>2020-05-18T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate through rows and pivot / transpose rows and columns.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterate-through-rows-and-pivot-transpose-rows-and-columns/m-p/2259956#M41262</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LHwgAAG"&gt;@ecurren-lmi&lt;/A&gt;&amp;nbsp;, you can achieve the below example with tUnpivot component, which is an external component. You need to download from the exchange&amp;nbsp;&lt;A href="https://exchange.talend.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/&lt;/A&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;check the below link on how to install that component.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kkUkCAI#M121185" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/talend-exchange-install-tQuartzScheduler/m-p/220034#M121185&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 04:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterate-through-rows-and-pivot-transpose-rows-and-columns/m-p/2259956#M41262</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-19T04:44:14Z</dc:date>
    </item>
  </channel>
</rss>

