<?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: How to filter n rows in a collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45934#M2036</link>
    <description>Hi Suman,&lt;BR /&gt;&lt;BR /&gt;I just need to know on what criteria you are going to filter for 'n' rows from final collection which is sorted? or &lt;BR /&gt;just need only 'n' rows from top of collection without any filter specification?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yeswa Vaibhav Alwar Nerella&lt;BR /&gt;Associate Consultant&lt;BR /&gt;Capgemini&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Jun 2020 12:14:00 GMT</pubDate>
    <dc:creator>Yeswa_Vaibhav_1</dc:creator>
    <dc:date>2020-06-09T12:14:00Z</dc:date>
    <item>
      <title>How to filter n rows in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45933#M2035</link>
      <description>I have a collection which is a final collection after using sort collection. From that final collection, I want to filter only "n' rows for example only Top 3 from that collection.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So my final output collection should look like &lt;BR /&gt;1. Suman3 - 52.3&lt;BR /&gt;2. Suman4 - 42.2&lt;BR /&gt;3. Suman - 40.99&lt;BR /&gt;&lt;BR /&gt;Could someone please help me on this?&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16267.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16422i3249B349D90030BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="16267.png" alt="16267.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chanda Suman&lt;BR /&gt;Sr. Automation Specialist II&lt;BR /&gt;S&amp;amp;P Global&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 11:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45933#M2035</guid>
      <dc:creator>ChandaSuman</dc:creator>
      <dc:date>2020-06-09T11:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to filter n rows in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45934#M2036</link>
      <description>Hi Suman,&lt;BR /&gt;&lt;BR /&gt;I just need to know on what criteria you are going to filter for 'n' rows from final collection which is sorted? or &lt;BR /&gt;just need only 'n' rows from top of collection without any filter specification?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yeswa Vaibhav Alwar Nerella&lt;BR /&gt;Associate Consultant&lt;BR /&gt;Capgemini&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 12:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45934#M2036</guid>
      <dc:creator>Yeswa_Vaibhav_1</dc:creator>
      <dc:date>2020-06-09T12:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to filter n rows in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45935#M2037</link>
      <description>Hi Vaibhav,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. I won't have any filter specifications.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In your words. I require "&lt;SPAN&gt;just need only 'n' rows from top of collection without any filter specification?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chanda Suman&lt;BR /&gt;Sr. Automation Specialist II&lt;BR /&gt;S&amp;amp;P Global&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 13:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45935#M2037</guid>
      <dc:creator>ChandaSuman</dc:creator>
      <dc:date>2020-06-09T13:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to filter n rows in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45936#M2038</link>
      <description>In&amp;nbsp; that case you can copy those number of rows to another collection, by using copy rows action stage in Collection Manipulation VBO. Add as many rows you need. Refer screenshot.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16260.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16417iF0F4FA56CBD913C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="16260.png" alt="16260.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;Let me know if it is not clear. It will work.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yeswa Vaibhav Alwar Nerella&lt;BR /&gt;Associate Consultant&lt;BR /&gt;Capgemini&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 14:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45936#M2038</guid>
      <dc:creator>Yeswa_Vaibhav_1</dc:creator>
      <dc:date>2020-06-09T14:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to filter n rows in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45937#M2039</link>
      <description>Thanks Vaibhav... This definitely helps and will use this one for sure.&lt;BR /&gt;&lt;BR /&gt;Anything we could do using "Filter Collection" under Utility collection manipulation?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chanda Suman&lt;BR /&gt;Sr. Automation Specialist II&lt;BR /&gt;S&amp;amp;P Global&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 14:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45937#M2039</guid>
      <dc:creator>ChandaSuman</dc:creator>
      <dc:date>2020-06-09T14:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to filter n rows in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45938#M2040</link>
      <description>The code stage within "Filter Collection" currently only uses the DataTable.Select() method, which does not support this.&amp;nbsp;&lt;STRONG&gt;However&lt;/STRONG&gt;, you could make a clone of this action and supply an input for number of rows you need. This will also require some changes to the object dependencies, which I'll list below.&lt;BR /&gt;&lt;BR /&gt;In code options, add to External References:&lt;BR /&gt;System.Data.DataSetExtensions.dll&lt;BR /&gt;System.Core.dll&lt;BR /&gt;&lt;BR /&gt;In code options, add to External References:&lt;BR /&gt;System.Linq (It boggles my mind that this isn't in here to begin with, but that's neither here nor there.)&lt;BR /&gt;&lt;BR /&gt;Add input:&lt;BR /&gt;number - Number (Specifies number of top rows to pull)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Change line 3 to:&lt;BR /&gt;&lt;/SPAN&gt;Add to ln 13:&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;Collection_Out &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection_Out&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;AsEnumerable&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Take&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;number&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CopyToDataTable&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;BR /&gt;Edited to take top rows post-filter instead of pre-filter&lt;BR /&gt;------------------------------&lt;BR /&gt;Ami Barrett&lt;BR /&gt;Sr Product Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Plano, TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jun 2020 15:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-filter-n-rows-in-a-collection/m-p/45938#M2040</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2020-06-09T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

