<?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: [resolved] Duplicate Rows based on a column value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318241#M88604</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Another quick trick I require, I have a filed that looks like : ;;;;;;;1;;;;1;;;;1&lt;BR /&gt;And I would like to be able to addition those numbers... any java killer method could help?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;PRE&gt;String[] tab = ";;;;;;;1;;;;1;;;;1".split(";");&lt;BR /&gt;int result = 0;&lt;BR /&gt;for(String s : tab) {&lt;BR /&gt;   if(s.matches("+")) {&lt;BR /&gt;      result += Integer.parseInt(s);&lt;BR /&gt;   }&lt;BR /&gt;}&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 May 2009 16:23:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-05-26T16:23:23Z</dc:date>
    <item>
      <title>[resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318240#M88603</link>
      <description>Hi Guys,
&lt;BR /&gt;I have a tricky job to do. Basically I want to change the number of tuples I have in a source component based on a number located into a filed. I explain:
&lt;BR /&gt;Entry File
&lt;BR /&gt;No Name Number
&lt;BR /&gt;1 Dupont 4
&lt;BR /&gt;Output File
&lt;BR /&gt;No Name
&lt;BR /&gt;1 Dupont
&lt;BR /&gt;1 Dupont
&lt;BR /&gt;1 Dupont
&lt;BR /&gt;1 Dupont
&lt;BR /&gt;Is there any simple trick I can use?
&lt;BR /&gt;Another quick trick I require, I have a filed that looks like : ;;;;;;;1;;;;1;;;;1
&lt;BR /&gt;And I would like to be able to addition those numbers... any java killer method could help?
&lt;BR /&gt;Many thanks folks!</description>
      <pubDate>Sat, 16 Nov 2024 13:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318240#M88603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318241#M88604</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Another quick trick I require, I have a filed that looks like : ;;;;;;;1;;;;1;;;;1&lt;BR /&gt;And I would like to be able to addition those numbers... any java killer method could help?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;PRE&gt;String[] tab = ";;;;;;;1;;;;1;;;;1".split(";");&lt;BR /&gt;int result = 0;&lt;BR /&gt;for(String s : tab) {&lt;BR /&gt;   if(s.matches("+")) {&lt;BR /&gt;      result += Integer.parseInt(s);&lt;BR /&gt;   }&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2009 16:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318241#M88604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-26T16:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318242#M88605</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Is there any simple trick I can use?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Yes, it is easy to finish in TOS. Here is a java senario:
&lt;BR /&gt;in.csv:
&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;1;Dupont;4&lt;BR /&gt;2;Shong;3&lt;BR /&gt;&lt;/B&gt;
&lt;BR /&gt;Result:
&lt;BR /&gt;
&lt;PRE&gt;Starting job forum6760 at 10:53 27/05/2009.&lt;BR /&gt;1|Dupont&lt;BR /&gt;1|Dupont&lt;BR /&gt;1|Dupont&lt;BR /&gt;1|Dupont&lt;BR /&gt;2|Shong&lt;BR /&gt;2|Shong&lt;BR /&gt;2|Shong&lt;BR /&gt;Job forum6760 ended at 10:53 27/05/2009. &lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 27 May 2009 04:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318242#M88605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-27T04:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318243#M88606</link>
      <description>shong beat me to it, but I've used the tFor in my solution. Good use of the "Number of rows"in the tFixedFlowInput shong! 
&lt;BR /&gt;I think this proves that there are many ways to skin the cat when you've got such a great tool to work with. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;.. I want to change the number of tuples I have in a source component based on a number located into a filed&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Load the fields into context variables first. 
&lt;BR /&gt;Iterate using a tLoop, up to the count in the context variable. 
&lt;BR /&gt;Use a tFixedFlowInput to insert the context variables into the data stream. 
&lt;BR /&gt;I've used a tLogRow, but if you want the flow out to a file you'll need to make sure you append. 
&lt;BR /&gt;Cheers, 
&lt;BR /&gt;c0utta</description>
      <pubDate>Wed, 27 May 2009 06:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318243#M88606</guid>
      <dc:creator>c0utta</dc:creator>
      <dc:date>2009-05-27T06:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318244#M88607</link>
      <description>Guys, you all saved me!!! I 'll implement that today...&lt;BR /&gt;Remy (who loves this community...)</description>
      <pubDate>Wed, 27 May 2009 06:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318244#M88607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-27T06:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318245#M88608</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hello&lt;BR /&gt;
     &lt;BLOCKQUOTE&gt;
      &lt;TABLE border="1"&gt;
       &lt;TBODY&gt;
        &lt;TR&gt;
         &lt;TD&gt;Is there any simple trick I can use?&lt;/TD&gt;
        &lt;/TR&gt;
       &lt;/TBODY&gt;
      &lt;/TABLE&gt;
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Yes, it is easy to finish in TOS. Here is a java senario:&lt;BR /&gt;in.csv:&lt;BR /&gt;&lt;B&gt;&lt;BR /&gt;1;Dupont;4&lt;BR /&gt;2;Shong;3&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;PRE&gt;Starting job forum6760 at 10:53 27/05/2009.&lt;BR /&gt;1|Dupont&lt;BR /&gt;1|Dupont&lt;BR /&gt;1|Dupont&lt;BR /&gt;1|Dupont&lt;BR /&gt;2|Shong&lt;BR /&gt;2|Shong&lt;BR /&gt;2|Shong&lt;BR /&gt;Job forum6760 ended at 10:53 27/05/2009. &lt;/PRE&gt;&lt;BR /&gt;Best regards&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;how you do that ?
&lt;BR /&gt;regards,
&lt;BR /&gt;G.</description>
      <pubDate>Wed, 06 Aug 2014 22:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318245#M88608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-06T22:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318246#M88609</link>
      <description>&lt;PRE&gt;how you do that ?&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;The job design is as below:&lt;BR /&gt;tFileInputDelimited--main(row1)--&amp;gt;tFlowToIterate--iterate--&amp;gt;tFixedFlowInput--main--tLogrow&lt;BR /&gt;on tFixedFlowInput, set the number of Row field with the current Number value, for example:&lt;BR /&gt;(Integer)globaoMap.get("row1.Number")&lt;BR /&gt;About&amp;nbsp;&lt;FONT size="2"&gt;tFlowToIterate component, r&lt;/FONT&gt;&lt;FONT size="2"&gt;efer to the user manual:&lt;/FONT&gt;&lt;BR /&gt;&lt;A href="https://help.talend.com/reader/JuYAu6ZYt6JnyC2yfuo83w/~aaaL9zPp0xMBTIBqNXMmw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/JuYAu6ZYt6JnyC2yfuo83w/~aaaL9zPp0xMBTIBqNXMmw&lt;/A&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 02:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318246#M88609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-07T02:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Duplicate Rows based on a column value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318247#M88610</link>
      <description>Thank you very much 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;You save my day! 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;G.</description>
      <pubDate>Thu, 07 Aug 2014 07:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Duplicate-Rows-based-on-a-column-value/m-p/2318247#M88610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-07T07:29:05Z</dc:date>
    </item>
  </channel>
</rss>

