<?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: Normalize csv file : from rows to columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231353#M21683</link>
    <description>I hv tried devloping a job with details provided in the link above, but ended up with the error.&lt;BR /&gt;please help me out. i hv attached the error image.&lt;BR /&gt;vin</description>
    <pubDate>Thu, 20 Nov 2008 13:19:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-11-20T13:19:28Z</dc:date>
    <item>
      <title>Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231351#M21681</link>
      <description>Hello,
&lt;BR /&gt;I have a complicated thing to do with Talend..
&lt;BR /&gt;My input is a csv file. Here is its schema :
&lt;BR /&gt;Id_shop;Id_cust;Id_prod;Year;Month;day1;day2;day3;...;day30;
&lt;BR /&gt;The fields "day1" to "day30" contain quantities. The quantities of products ("Id_prod") sold by a shop ("Id_Shop") to a customer ("Id_cust") at the date "Month/Year". The field "day1" contains the quantity of the first day of the month and "day30" the quantity of the last day.
&lt;BR /&gt;I would like to load those data in a oracle table which has this schema :
&lt;BR /&gt;Id_shop;Id_cust;Id_prod;Date;Quantity
&lt;BR /&gt;No problem for the Id_shop, Id_cust and Id_prod (it's the primary key) but the field Date is defined by the month, the year and the days from the csv file.
&lt;BR /&gt;For example : 
&lt;BR /&gt;in the csv file : month = 05 and year = 2008.
&lt;BR /&gt;in the oracle table, i should have for each key all dates from 01/05/2008 to 30/05/2008
&lt;BR /&gt;Then, for the date 01/05/2008 the field Quantity contains the quantity written in the field "day1" of the csv file.
&lt;BR /&gt;Is that clear?
&lt;BR /&gt;With informatica, there is a module called normalizer which allows to do that.. Is there something equivalent in Talend?
&lt;BR /&gt;Thanks!
&lt;BR /&gt;Nico</description>
      <pubDate>Sat, 16 Nov 2024 14:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231351#M21681</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231352#M21682</link>
      <description>Your question is very clear, have a look at 4500</description>
      <pubDate>Wed, 19 Nov 2008 10:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231352#M21682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-19T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231353#M21683</link>
      <description>I hv tried devloping a job with details provided in the link above, but ended up with the error.&lt;BR /&gt;please help me out. i hv attached the error image.&lt;BR /&gt;vin</description>
      <pubDate>Thu, 20 Nov 2008 13:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231353#M21683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-20T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231354#M21684</link>
      <description>Hi,&lt;BR /&gt;I think you should use row2 in tjavarow. So the code in tJavaRow becomes :&lt;BR /&gt;globalMap.put("AMT1",row2.AMT1);&lt;BR /&gt;globalMap.put("AMT2",row2.AMT2);&lt;BR /&gt;globalMap.put("AMT3",row2.AMT3);&lt;BR /&gt;Regards,&lt;BR /&gt;Youssef</description>
      <pubDate>Thu, 20 Nov 2008 13:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231354#M21684</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-20T13:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231355#M21685</link>
      <description>thnks youssef&lt;BR /&gt;vin</description>
      <pubDate>Thu, 20 Nov 2008 14:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231355#M21685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-20T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231356#M21686</link>
      <description>you wrote&lt;BR /&gt;gloablMap.put("AMT3",row2.AMT3);&lt;BR /&gt;instead of &lt;BR /&gt;globalMap.put("AMT3",row2.AMT3);&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Youssef</description>
      <pubDate>Thu, 20 Nov 2008 14:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231356#M21686</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-20T14:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231357#M21687</link>
      <description>I hv corrected them, the job was showing no errors with no output.&lt;BR /&gt; the problem is input values are processed only to tJavarow, but not to tForeach and subsequent components.&lt;BR /&gt;did i leave anything not mentioned&lt;BR /&gt;vin</description>
      <pubDate>Thu, 20 Nov 2008 14:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231357#M21687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-20T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231358#M21688</link>
      <description>hi,&lt;BR /&gt;did you fill the tree enteries in tForeach Componenent as shown in 17745 &lt;BR /&gt;Regards youssef</description>
      <pubDate>Thu, 20 Nov 2008 15:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231358#M21688</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-20T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231359#M21689</link>
      <description>Thanks Yousef,&lt;BR /&gt;I have got it. Its working fine&lt;BR /&gt;Vin</description>
      <pubDate>Thu, 20 Nov 2008 15:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231359#M21689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-20T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231360#M21690</link>
      <description>90&lt;BR /&gt;I've chosen to have a hard coded schema as tUnpivotRow output, it makes things a lot easier to configure for user. Use tExtractDelimitedFields to extract subfields in the output "row_key" column.</description>
      <pubDate>Sat, 22 Nov 2008 00:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231360#M21690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-22T00:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231361#M21691</link>
      <description>Thanks a lot! This component is perfect for my needs.
&lt;BR /&gt;Just one question : the final schema is composed of 3 columns :
&lt;BR /&gt;row_key
&lt;BR /&gt;pivot_key
&lt;BR /&gt;pivot_value
&lt;BR /&gt;How can we have at the end the same schema as the original schema? By exploding the "row_key" column thanks to a PERL regular expression?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Nicolep</description>
      <pubDate>Mon, 24 Nov 2008 11:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231361#M21691</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-11-24T11:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231362#M21692</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;How can we have at the end the same schema as the original schema? By exploding the "row_key" column thanks to a PERL regular expression?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;In , you will find tExtract*Fields. Currently (Talend Open Studio 3.0), you have tExtractDelimitedFields, tExtractPositionalFields and tExtractRegexFields. tUnpivotRow was designed to be followed by a tExtractDelimitedFields.</description>
      <pubDate>Mon, 24 Nov 2008 12:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231362#M21692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T12:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231363#M21693</link>
      <description>Ok thanks..&lt;BR /&gt;This component allows to split the "row_key" but it doesn't allow to load the "pivot_key" and the "pivot_value" and it doesn't support 2 outputs.. &lt;BR /&gt;How can we split the "row_key" and then load all the columns (with "pivot_key" and "pivot_value")? With a TMap ?</description>
      <pubDate>Mon, 24 Nov 2008 14:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231363#M21693</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-11-24T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231364#M21694</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;This component allows to split the "row_key" but it doesn't allow to load the "pivot_key" and the "pivot_value" and it doesn't support 2 outputs.. &lt;BR /&gt;How can we split the "row_key" and then load all the columns (with "pivot_key" and "pivot_value")? With a TMap ?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;tExtractDelimitedFields fills several output fields from a single input field + keep other input fields unchanged (tExtractRegexFields un component reference guide shows this way to use tExtract*Fields component).</description>
      <pubDate>Mon, 24 Nov 2008 14:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231364#M21694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize csv file : from rows to columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231365#M21695</link>
      <description>Ok that's right, when we put the same column name ("pivot_key" and "pivot_value") in the output schema of the tExtractDelimitedFile, the column are automatically loaded.&lt;BR /&gt;It works fine!&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 24 Nov 2008 15:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Normalize-csv-file-from-rows-to-columns/m-p/2231365#M21695</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-11-24T15:55:26Z</dc:date>
    </item>
  </channel>
</rss>

