<?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: samplerow how to set the Range in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231247#M21600</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The most simple way is to add a numeric sequence to your inbound record. Then add an output expression where the reminder of sequence number division by 10 should be zero. In this way, you can pick the records which are 10,20,30, etc.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you can use a context variable instead of 10, then you can change this from 10 to evry 5 records or every 7 records and so on.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; To put an upper cutoff limit, you need to add another output filter condition where the sequence number generated should be less than the upper cutoff number (again a context variable which can be set at beginning of job).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Hope it has helped you &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; 
&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>Thu, 07 Mar 2019 14:07:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-07T14:07:51Z</dc:date>
    <item>
      <title>samplerow how to set the Range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231246#M21599</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to set the Range of the tsamplerow so that every 10th row will be processed&lt;/P&gt;
&lt;P&gt;eg. 10,20,30,40,...&lt;/P&gt;
&lt;P&gt;in this case i don't now the end of the line or i can set a big end of the range.&lt;/P&gt;
&lt;P&gt;such as 10,20,30,40,...,40000 will be possible&lt;/P&gt;
&lt;P&gt;how must i set it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Andreas&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231246#M21599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: samplerow how to set the Range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231247#M21600</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The most simple way is to add a numeric sequence to your inbound record. Then add an output expression where the reminder of sequence number division by 10 should be zero. In this way, you can pick the records which are 10,20,30, etc.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If you can use a context variable instead of 10, then you can change this from 10 to evry 5 records or every 7 records and so on.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; To put an upper cutoff limit, you need to add another output filter condition where the sequence number generated should be less than the upper cutoff number (again a context variable which can be set at beginning of job).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Hope it has helped you &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; 
&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>Thu, 07 Mar 2019 14:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231247#M21600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: samplerow how to set the Range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231248#M21601</link>
      <description>&lt;P&gt;You might find this easier using a tMap and a modulus operator. For example, look at the tMap I have quickly knocked up below....&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-03-07 at 14.15.29.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1is.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153718i44B39E5B01234621/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1is.png" alt="0683p000009M1is.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;You will have to excuse the column names. In this example newColumn is your ID column. What I have done is used a filter in the outbound table. What the filter does is only pass the data out for records where the field holding the ID (newColumn) is divisible by 10. The code I have used is below....&lt;/P&gt; 
&lt;PRE&gt;row8.newColumn % 10 ==0&lt;/PRE&gt; 
&lt;P&gt;This says where the value is divisible by 10 with a remainder equalling 0.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Give that a try. You do not need to know the total number of rows for this.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231248#M21601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: samplerow how to set the Range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231249#M21602</link>
      <description>&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use below condition in filterrow ( Use Advance Mode)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mathematical.MOD(Numeric.sequence("s1",1,1),10) == 0.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not forget to reset the sequence at the end of subjob.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 14:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231249#M21602</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-07T14:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: samplerow how to set the Range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231250#M21603</link>
      <description>&lt;P&gt;all soulutions&amp;nbsp;work for me.&lt;/P&gt;&lt;P&gt;Thank you very mutch&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231250#M21603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: samplerow how to set the Range</title>
      <link>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231251#M21604</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00570000004XJhmAAG"&gt;@af99&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the confirmation. Could you please close the topic by marking the posts which helped you to get solution?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This will help the Talend community when other members are searching for the solutions. Always people will tend to select the topics which are marked as closed with solutions.&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, 08 Mar 2019 04:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/samplerow-how-to-set-the-Range/m-p/2231251#M21604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-08T04:44:56Z</dc:date>
    </item>
  </channel>
</rss>

