<?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: Max Value in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91810#M41740</link>
    <description>Thanks Paul,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll try that! And thanks Ami, always good to get the background on limitations.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Bernadette&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bernadette Stroeder&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Sep 2020 10:02:00 GMT</pubDate>
    <dc:creator>BernadetteStroe</dc:creator>
    <dc:date>2020-09-09T10:02:00Z</dc:date>
    <item>
      <title>Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91802#M41732</link>
      <description>hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The fastest way to find the highest number or max value, lets say between three number. Any help is appreciated.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;BR&lt;BR /&gt;&lt;BR /&gt;Zahib</description>
      <pubDate>Sat, 01 Jun 2019 18:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91802#M41732</guid>
      <dc:creator>ZahibSidiq</dc:creator>
      <dc:date>2019-06-01T18:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91803#M41733</link>
      <description>Could you explain the use case? There are several ways to get the max value in a list of values, but do you also need its associated data? Are these values already in a table or collection? Is it just a list of numbers that are not associated with anything else?&lt;BR /&gt;&lt;BR /&gt;Also, are you looking for the most efficient way to do this or just a way that works?&lt;BR /&gt;&lt;BR /&gt;I'll give two quick options for now.&lt;BR /&gt;&lt;BR /&gt;Option #1: Assuming that you do not care whether that highest number or max value is in the list more than once... Bring the numbers into a collection, where each number is on its own line. Then use the action 'Sort​ Collection' in the VBO 'Utility - Collection Manipulation'. Put the field name into the 'Sort Field' input. And put 'False' in the input 'Ascending Order' so that the highest number will be in the first row. The first row should be selected in the output collection. So, you should be able to use a calculation stage to get the value from the first row like '[Sorted Collection.FieldName]' to get the value. This of course ignores whether row 2, etc. also have the same value. But this is assuming you just want to know that value.&lt;BR /&gt;&lt;BR /&gt;Option #2: The other way to do it that may or may not be more efficient is to (again put the numbers into rows of a collection first) loop through the collection and store the value into a data item each time you find that it is higher. You'd have a decision stage that compares the current number to the last highest number. If it is higher, then you replace the last highest number with the current number and then loop again.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Jun 2019 15:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91803#M41733</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-06-02T15:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91804#M41734</link>
      <description>I had three dates which i wanted to find the latest one. What I did was, formated the date to "yyyyMMdd" and then used what you described in option #1 to find the biggest "number" and converted back the number to the original date format. Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Mvh&lt;BR /&gt;&lt;BR /&gt;Zahib&amp;nbsp;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zahib Sidiq&lt;BR /&gt;Associate&lt;BR /&gt;KPMG&lt;BR /&gt;Europe/Oslo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2019 12:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91804#M41734</guid>
      <dc:creator>ZahibSidiq</dc:creator>
      <dc:date>2019-06-03T12:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91805#M41735</link>
      <description>That makes sense. You should also be able to sort on a date without changing the format of it assuming it's in a Date data item. But what you did should work solidly too.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2019 12:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91805#M41735</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-06-03T12:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91806#M41736</link>
      <description>Thank you for the tips once again:)&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zahib Sidiq&lt;BR /&gt;Associate&lt;BR /&gt;KPMG&lt;BR /&gt;Europe/Oslo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91806#M41736</guid>
      <dc:creator>ZahibSidiq</dc:creator>
      <dc:date>2019-06-03T13:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91807#M41737</link>
      <description>Hello @Morris_Dave&amp;nbsp;&lt;BR /&gt;I have a similar question, but in this case, I'd like to get the corresponding value under Name in the row with the largest value under Age. I also want to get the Name and lowest value (a number) under Age. I used the sort utility already, so the collection is in size order. I just need to find a way to isolate the top row and the bottom row.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope you can help.&lt;BR /&gt;Thanks​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bernadette Stroeder&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Sep 2020 21:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91807#M41737</guid>
      <dc:creator>BernadetteStroe</dc:creator>
      <dc:date>2020-09-07T21:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91808#M41738</link>
      <description>Unfortunately, BP does not allow you direct access the first or last row. So, in order to get the highest and lowest value, you'd sort it twice on Age, first descending and then ascending, and after each sort you only read the first row to get the value and the name that comes with it.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Sep 2020 12:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91808#M41738</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2020-09-08T12:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91809#M41739</link>
      <description>This is true for anything out of the box. In the backend, a collection is still a .Net DataTable. A code stage can be written to reference a cell/row directly by integer index.&lt;BR /&gt;&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, 08 Sep 2020 12:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91809#M41739</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2020-09-08T12:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91810#M41740</link>
      <description>Thanks Paul,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll try that! And thanks Ami, always good to get the background on limitations.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Bernadette&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bernadette Stroeder&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Sep 2020 10:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91810#M41740</guid>
      <dc:creator>BernadetteStroe</dc:creator>
      <dc:date>2020-09-09T10:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91811#M41741</link>
      <description>Hi Zahib,&lt;BR /&gt;&lt;BR /&gt;I have similar use case to find the max date from collection of dates after sorting. Could you explain how you did the coding.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;Marina&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Marina Dutta&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jan 2022 08:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91811#M41741</guid>
      <dc:creator>MarinaDutta</dc:creator>
      <dc:date>2022-01-25T08:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Max Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91812#M41742</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/954"&gt;@BernadetteStroe&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You can also use the 'Filter collection' action in the BDO 'Utillity - Collection Manipulation'. &lt;BR /&gt;If you use a filter like "[Age] = MAX(Age)" then you will get the row(s) with the maximum value for age and if you use "[Age] = MIN(Age)" then you will get the minimum one.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;Lars&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lars Vinding&lt;BR /&gt;Faglig koordinator&lt;BR /&gt;Kolding Kommune&lt;BR /&gt;Europe/Copenhagen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2022 07:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Max-Value/m-p/91812#M41742</guid>
      <dc:creator>LarsVinding</dc:creator>
      <dc:date>2022-01-26T07:09:00Z</dc:date>
    </item>
  </channel>
</rss>

