<?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: one record to be split into two records in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278823#M54189</link>
    <description>&lt;P&gt;Assuming that , you have another sheet with data like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAPEDCODE&lt;/P&gt;&lt;P&gt;C2345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;2345:5678&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in tMap , do a join between two sheet,so that output of tmap will be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;2345:5678&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the use tNornamise&amp;nbsp; - &lt;SPAN&gt;Code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;2345&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;5678&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now on tJavaRow ,&lt;/P&gt;&lt;P&gt;output_row.ID=input_row.ID&lt;/P&gt;&lt;P&gt;output_row.CODE=input_row.CODE&lt;/P&gt;&lt;P&gt;output_row.PRICE = input_row.PRICE -&amp;nbsp;Numeric.sequence(input_row.ID,0,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 12:48:47 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-04-24T12:48:47Z</dc:date>
    <item>
      <title>one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278820#M54186</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;i have one record with following data&lt;/P&gt;&lt;P&gt;input&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C2345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;500&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now i need to make two records from it&lt;/P&gt;&lt;P&gt;c2345==2345:5678 (this code am having in my sheet&amp;nbsp; i need to compare the sheet and generate it)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp;PRICE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 499&lt;BR /&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5678&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regards&lt;/P&gt;&lt;P&gt;bhagyarekha&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278820#M54186</guid>
      <dc:creator>bhagyarekha</dc:creator>
      <dc:date>2019-04-24T11:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278821#M54187</link>
      <description>&lt;P&gt;How did you split the price column ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278821#M54187</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-24T12:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278822#M54188</link>
      <description>That is main price minus one</description>
      <pubDate>Wed, 24 Apr 2019 12:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278822#M54188</guid>
      <dc:creator>bhagyarekha</dc:creator>
      <dc:date>2019-04-24T12:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278823#M54189</link>
      <description>&lt;P&gt;Assuming that , you have another sheet with data like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAPEDCODE&lt;/P&gt;&lt;P&gt;C2345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;2345:5678&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in tMap , do a join between two sheet,so that output of tmap will be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;2345:5678&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the use tNornamise&amp;nbsp; - &lt;SPAN&gt;Code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CODE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRICE&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;2345&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;5678&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now on tJavaRow ,&lt;/P&gt;&lt;P&gt;output_row.ID=input_row.ID&lt;/P&gt;&lt;P&gt;output_row.CODE=input_row.CODE&lt;/P&gt;&lt;P&gt;output_row.PRICE = input_row.PRICE -&amp;nbsp;Numeric.sequence(input_row.ID,0,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278823#M54189</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-24T12:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278824#M54190</link>
      <description>Ya I have tried up to t normalize now I will add tjavarow and will update you.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;Thanks for your time abhisheik</description>
      <pubDate>Wed, 24 Apr 2019 13:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278824#M54190</guid>
      <dc:creator>bhagyarekha</dc:creator>
      <dc:date>2019-04-24T13:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278825#M54191</link>
      <description>Here am getting output in price column as 499 in both records.&lt;BR /&gt;I want 499 in one record and 1 in one record</description>
      <pubDate>Wed, 24 Apr 2019 13:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278825#M54191</guid>
      <dc:creator>bhagyarekha</dc:creator>
      <dc:date>2019-04-24T13:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278826#M54192</link>
      <description>&lt;P&gt;sorry try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Integer seq =&amp;nbsp;Numeric.sequence(input_row.ID,1,1) ;&lt;/P&gt;&lt;P&gt;output_row.ID=input_row.ID;&lt;/P&gt;&lt;P&gt;output_row.CODE=input_row.CODE;&lt;/P&gt;&lt;P&gt;output_row.PRICE = (seq == 1)?input_row.PRICE -&amp;nbsp; seq &amp;nbsp; :&amp;nbsp; seq - 1;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 14:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278826#M54192</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-24T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278827#M54193</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please try below method?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 796px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4pK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140045i9B719516513012A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4pK.png" alt="0683p000009M4pK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The component details are as below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4pP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156061iFE04A825AC550717/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4pP.png" alt="0683p000009M4pP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4ed.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137545i50418DB79E560EE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4ed.png" alt="0683p000009M4ed.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 787px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4jm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141667iEED926D1EAF8202B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4jm.png" alt="0683p000009M4jm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 626px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4pe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128076i2C36D0EA292FA0A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4pe.png" alt="0683p000009M4pe.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 671px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Yg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139371iD225A63696D0CF74/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Yg.png" alt="0683p000009M4Yg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please maintain the order of the tMaps as shown in picture. Instead of hard coding, you can even convert the value 1 with a context variable if the discount is different for each run.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 14:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278827#M54193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-24T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: one record to be split into two records</title>
      <link>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278828#M54194</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLsvAAG"&gt;@bhagyarekha&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you were able to resolve your issue by one of the above methods.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you do not have any outstanding queries, could you please mark the topic as resolved by marking the posts which helped you?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 05:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/one-record-to-be-split-into-two-records/m-p/2278828#M54194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T05:08:41Z</dc:date>
    </item>
  </channel>
</rss>

