<?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: Collect a fixed amount of rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225731#M17911</link>
    <description>hi, you have 2 questions.
&lt;BR /&gt;first is to group by n rows.
&lt;BR /&gt;you can use tmap creating seqence and using modulo to get a unique index by n lines Numeric.sequence("seq1",0,1)%n+1 -- id
&lt;BR /&gt;then use taggregate to group lines in list.
&lt;BR /&gt;
&lt;BR /&gt;an other solution is to manualy concaténate fields into tmap variable
&lt;BR /&gt;var.var1 = var.var1 + row1.value
&lt;BR /&gt;then use taggregate to keep only the last line.
&lt;BR /&gt;
&lt;BR /&gt;good luck</description>
    <pubDate>Wed, 04 Sep 2019 08:45:23 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2019-09-04T08:45:23Z</dc:date>
    <item>
      <title>Collect a fixed amount of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225730#M17910</link>
      <description>&lt;P&gt;hi guys, i have a question again:&lt;/P&gt; 
&lt;P&gt;I have a certain number of rows and would like to put them into packages of the same size. Let's say I have 500 rows and always want to collect and summarize 20.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example:&lt;/P&gt; 
&lt;P&gt;Row1&lt;/P&gt; 
&lt;P&gt;Row2&lt;/P&gt; 
&lt;P&gt;Row3&lt;/P&gt; 
&lt;P&gt;...&lt;/P&gt; 
&lt;P&gt;Row21&lt;/P&gt; 
&lt;P&gt;Row22&lt;/P&gt; 
&lt;P&gt;...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Should be:&lt;/P&gt; 
&lt;P&gt;Row1|Row2|Row3|...&lt;/P&gt; 
&lt;P&gt;Row21|Row22|... and so on&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've been looking for a solution for several hours now, but I haven't found any. I hope you can help me.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt; 
&lt;P&gt;BooWseR&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 20:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225730#M17910</guid>
      <dc:creator>BooWseR</dc:creator>
      <dc:date>2019-09-03T20:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Collect a fixed amount of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225731#M17911</link>
      <description>hi, you have 2 questions.
&lt;BR /&gt;first is to group by n rows.
&lt;BR /&gt;you can use tmap creating seqence and using modulo to get a unique index by n lines Numeric.sequence("seq1",0,1)%n+1 -- id
&lt;BR /&gt;then use taggregate to group lines in list.
&lt;BR /&gt;
&lt;BR /&gt;an other solution is to manualy concaténate fields into tmap variable
&lt;BR /&gt;var.var1 = var.var1 + row1.value
&lt;BR /&gt;then use taggregate to keep only the last line.
&lt;BR /&gt;
&lt;BR /&gt;good luck</description>
      <pubDate>Wed, 04 Sep 2019 08:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225731#M17911</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-04T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Collect a fixed amount of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225732#M17912</link>
      <description>&lt;P&gt;Hi Francois, thank you for your answer.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the meantime, I have been able to find my own solution, which also works quite well. Let me show you:&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-inline" image-alt="image.png" style="width: 963px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6ua.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131274i98F510C826662480/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6ua.png" alt="0683p000009M6ua.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First I get the data from a REST interface. Then I extract the data I need from the JSON, split it with "tNormalize" and write it into an ArryList with tJavaFlex.&lt;/P&gt; 
&lt;P&gt;Then I iterate with tLoop in predefined steps (10 each) up to the maximum of the ArrayList.&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-inline" image-alt="image.png" style="width: 781px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6uf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155399iE36D682A1B1B3BF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6uf.png" alt="0683p000009M6uf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm pretty sure I could have used the output from the JSON as a list somehow, but I couldn't get it right.&amp;nbsp;I'm sure that your solution will certainly perform better, but currently mine works.&amp;nbsp;When I find the time, I'll try your solution. Anyway, thanks for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt; 
&lt;P&gt;BooWseR&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225732#M17912</guid>
      <dc:creator>BooWseR</dc:creator>
      <dc:date>2019-09-04T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Collect a fixed amount of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225733#M17913</link>
      <description>hi mark your topic as solved,&lt;BR /&gt;just think about maintenance, less java code easier is the understanding of a talend job.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2019 07:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225733#M17913</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-09T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Collect a fixed amount of rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225734#M17914</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Wow, so much brain functioning for a simple thing ^^&lt;/P&gt; 
&lt;P&gt;Use tSampleRow and you should be ok &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;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 08:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Collect-a-fixed-amount-of-rows/m-p/2225734#M17914</guid>
      <dc:creator>rmartin2</dc:creator>
      <dc:date>2019-09-09T08:27:10Z</dc:date>
    </item>
  </channel>
</rss>

