<?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: Remove duplicates from collection but keep latest row? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109285#M49513</link>
    <description>&lt;P&gt;Sorry for my delay, in this case, you can make three filters by ID, exceptions and completed and validate the result&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 filter "[Item ID] = '" &amp;amp;[Collection Generated in step 3.Item ID]&amp;amp;" '&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 Filter:&amp;nbsp;"[Exception] = MAX(Exception])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 Filter:&amp;nbsp;2 Filter:&amp;nbsp;"[completed] = MAX(completed])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If has result in filter 2 or 3 you get the result e put in the final collection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 23:07:45 GMT</pubDate>
    <dc:creator>EmersonF</dc:creator>
    <dc:date>2024-04-04T23:07:45Z</dc:date>
    <item>
      <title>Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109253#M49497</link>
      <description>&lt;P&gt;In the following collection, I need to remove duplicates but keep the latest row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Keep item ID 37304873 with the completed date of 25/01/2024 but remove the row containing the same ID that has an exception date of&amp;nbsp;24/01/2024.&lt;/LI&gt;&lt;LI&gt;Keep item ID 21116344 with the exception date of&amp;nbsp;29/01/2024 but remove the row containing the same ID that has an exception date of&amp;nbsp;24/01/2024.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidjeffery_0-1712230407805.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37778i0DCE6CF1D9B6BAA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davidjeffery_0-1712230407805.png" alt="davidjeffery_0-1712230407805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm installed a BO that will remove the duplicates, but it doesn't always keep the latest row, even after sorting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:41:15 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109253#M49497</guid>
      <dc:creator>david.jeffery</dc:creator>
      <dc:date>2024-04-04T11:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109258#M49498</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/57206"&gt;@david.jeffery&lt;/a&gt;, I believe that the better option is, create a collection contains "Item Ids" with unique values and filter the colunms like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"[Item ID] = '" &amp;amp;[Data Item with Item ID]&amp;amp;" ' AND ([Exception] = MAX(Exception]) OR&amp;nbsp;&amp;nbsp;([Completed] = MAX(Completed]))"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;After that you can append the filter result in another final collection.&lt;/P&gt;&lt;P&gt;My collection&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmersonF_1-1712233176506.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37780i9A113B371B1260BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmersonF_1-1712233176506.png" alt="EmersonF_1-1712233176506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My filter&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmersonF_2-1712233233755.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37781i8625AB773A4F13EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmersonF_2-1712233233755.png" alt="EmersonF_2-1712233233755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My output&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="EmersonF_3-1712233262591.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37782iE178778051AE0543/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmersonF_3-1712233262591.png" alt="EmersonF_3-1712233262591.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 12:21:51 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109258#M49498</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2024-04-04T12:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109264#M49501</link>
      <description>&lt;P&gt;That looks great&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1854"&gt;@EmersonF&lt;/a&gt;&amp;nbsp;, if possible could you expand a little further on the exact steps you're taking to achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 13:27:28 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109264#M49501</guid>
      <dc:creator>david.jeffery</dc:creator>
      <dc:date>2024-04-04T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109268#M49503</link>
      <description>&lt;P&gt;Of course, my friend.&lt;BR /&gt;So, let by step...&lt;BR /&gt;1º Remove duplicate values ​​only from "Item ID"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2º With a collection with only unique ID items, run a loop&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3º Inside the loop there must be the Filter action containing the filter:&lt;BR /&gt;"[Item ID] = '" &amp;amp;[Collection Generated in step 3.Item ID]&amp;amp;" ' AND ([Exception] = MAX(Exception]) OR&amp;nbsp;&amp;nbsp;([Completed] = MAX(Completed]))" The result of this filter , will result in just one more current line.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;4º Still within the loop below the filter, add an action that will insert the filter result into a final collection of your choice.&lt;/P&gt;&lt;P&gt;5º After performing all the steps, you will have a final collection with all the unique and most recent items.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:01:35 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109268#M49503</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2024-04-04T15:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109270#M49504</link>
      <description>&lt;P&gt;Thank you Emerson. I've set that up already but I see this when I run the filter:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidjeffery_0-1712243148545.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37784iD10F1A928B7ECBFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davidjeffery_0-1712243148545.png" alt="davidjeffery_0-1712243148545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:05:59 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109270#M49504</guid>
      <dc:creator>david.jeffery</dc:creator>
      <dc:date>2024-04-04T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109271#M49505</link>
      <description>&lt;P&gt;Can you show me the full screenshot with filter?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:17:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109271#M49505</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2024-04-04T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109274#M49506</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidjeffery_0-1712244529019.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37785i4681C4183319E65F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davidjeffery_0-1712244529019.png" alt="davidjeffery_0-1712244529019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Queue Data] is the original collection containing duplicates.&lt;/P&gt;&lt;P&gt;[Unique Item ID's.Item ID] is the collection containing the unique item ID's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:51:38 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109274#M49506</guid>
      <dc:creator>david.jeffery</dc:creator>
      <dc:date>2024-04-04T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109284#M49512</link>
      <description>&lt;P&gt;Fixed some issues with the formatting. It kind of works but only if there are duplicate item ID's, if the item id isn't duplicated I'm not seeing any results&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 22:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109284#M49512</guid>
      <dc:creator>david.jeffery</dc:creator>
      <dc:date>2024-04-04T22:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove duplicates from collection but keep latest row?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109285#M49513</link>
      <description>&lt;P&gt;Sorry for my delay, in this case, you can make three filters by ID, exceptions and completed and validate the result&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 filter "[Item ID] = '" &amp;amp;[Collection Generated in step 3.Item ID]&amp;amp;" '&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 Filter:&amp;nbsp;"[Exception] = MAX(Exception])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 Filter:&amp;nbsp;2 Filter:&amp;nbsp;"[completed] = MAX(completed])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If has result in filter 2 or 3 you get the result e put in the final collection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 23:07:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-duplicates-from-collection-but-keep-latest-row/m-p/109285#M49513</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2024-04-04T23:07:45Z</dc:date>
    </item>
  </channel>
</rss>

