<?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 find Max value among Fields in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1169145#M6249</link>
    <description>&lt;P&gt;Hello Stephen,&lt;BR /&gt;&lt;BR /&gt;I faced a similar issue. The following code worked for me -&lt;BR /&gt;&lt;BR /&gt;Max($Field1,$Field2)&lt;BR /&gt;&lt;BR /&gt;Expression type - Arcade.&lt;BR /&gt;&lt;BR /&gt;Regards, Kedar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 04:57:09 GMT</pubDate>
    <dc:creator>KedaravindanBhaskar</dc:creator>
    <dc:date>2022-04-29T04:57:09Z</dc:date>
    <item>
      <title>How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12816#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day GeoNet Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to inquire how to search among rows of a table and find the maximum value only using a selected set of fields.&amp;nbsp; For example, If the table consists of five columns &lt;STRONG&gt;ID,F1,F2,F3,F4&lt;/STRONG&gt;, would want to search and find the maximum value in &lt;STRONG&gt;F2&lt;/STRONG&gt; and &lt;STRONG&gt;F4&lt;/STRONG&gt;.&amp;nbsp; The maximum value would become an value in a new field, called &lt;STRONG&gt;MX&lt;/STRONG&gt;.&amp;nbsp; An &lt;EM&gt;arcpy&lt;/EM&gt; solution is optimal and generic case is best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestions are much appreciated, thank you for your time.&lt;/P&gt;&lt;P&gt;Example Table ("MyVals")&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 288pt;" width="384"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt; width: 48pt;" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="" style="width: 48pt;" width="64"&gt;F1&lt;/TD&gt;&lt;TD class="" style="width: 48pt;" width="64"&gt;F2&lt;/TD&gt;&lt;TD class="" style="width: 48pt;" width="64"&gt;F3&lt;/TD&gt;&lt;TD class="" style="width: 48pt;" width="64"&gt;F4&lt;/TD&gt;&lt;TD class="" style="width: 48pt;" width="64"&gt;MX&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;1&lt;/TD&gt;&lt;TD class=""&gt;1&lt;/TD&gt;&lt;TD class=""&gt;22&lt;/TD&gt;&lt;TD class=""&gt;13&lt;/TD&gt;&lt;TD class=""&gt;33&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;2&lt;/TD&gt;&lt;TD class=""&gt;3&lt;/TD&gt;&lt;TD class=""&gt;2&lt;/TD&gt;&lt;TD class=""&gt;6&lt;/TD&gt;&lt;TD class=""&gt;55&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;3&lt;/TD&gt;&lt;TD class=""&gt;6&lt;/TD&gt;&lt;TD class=""&gt;9&lt;/TD&gt;&lt;TD class=""&gt;5&lt;/TD&gt;&lt;TD class=""&gt;66&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;4&lt;/TD&gt;&lt;TD class=""&gt;7&lt;/TD&gt;&lt;TD class=""&gt;7&lt;/TD&gt;&lt;TD class=""&gt;88&lt;/TD&gt;&lt;TD class=""&gt;77&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;5&lt;/TD&gt;&lt;TD class=""&gt;9&lt;/TD&gt;&lt;TD class=""&gt;9&lt;/TD&gt;&lt;TD class=""&gt;9&lt;/TD&gt;&lt;TD class=""&gt;88&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;6&lt;/TD&gt;&lt;TD class=""&gt;4&lt;/TD&gt;&lt;TD class=""&gt;77&lt;/TD&gt;&lt;TD class=""&gt;1&lt;/TD&gt;&lt;TD class=""&gt;99&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;8&lt;/TD&gt;&lt;TD class=""&gt;22&lt;/TD&gt;&lt;TD class=""&gt;44&lt;/TD&gt;&lt;TD class=""&gt;12&lt;/TD&gt;&lt;TD class=""&gt;33&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;9&lt;/TD&gt;&lt;TD class=""&gt;7&lt;/TD&gt;&lt;TD class=""&gt;5&lt;/TD&gt;&lt;TD class=""&gt;33&lt;/TD&gt;&lt;TD class=""&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="" height="17" style="height: 12.75pt;"&gt;10&lt;/TD&gt;&lt;TD class=""&gt;9&lt;/TD&gt;&lt;TD class=""&gt;4&lt;/TD&gt;&lt;TD class=""&gt;5&lt;/TD&gt;&lt;TD class=""&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 16:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12816#M92</guid>
      <dc:creator>StephenCoppola</dc:creator>
      <dc:date>2017-03-13T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12817#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the max of F2 and F4, in field calculator:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;max&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!F2!&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;!F4!&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or updateCursor (untested):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UpdateCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'F2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'F4'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'MX'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; max&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;updateRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12817#M93</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-10T20:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12818#M94</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to apply max function but it's not working...any relation with properties??? string value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2019 18:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12818#M94</guid>
      <dc:creator>RosialineMarques_Roedel</dc:creator>
      <dc:date>2019-12-26T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1034713#M5794</link>
      <description>&lt;P&gt;I agree this doesn't seem to work and therefore should not be marked as the solution.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/96611"&gt;@DarrenWiens2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This thread seems to agree:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/90697/how-to-populate-new-field-using-expression-containing-max-value-from-another-fie" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/90697/how-to-populate-new-field-using-expression-containing-max-value-from-another-fie&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 21:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1034713#M5794</guid>
      <dc:creator>Waffle_House</dc:creator>
      <dc:date>2021-03-09T21:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1034771#M5795</link>
      <description>&lt;P&gt;What doesn't work? Quick test seems successful:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-09 at 5.00.36 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8011iCB85F167679A7658/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-03-09 at 5.00.36 PM.png" alt="Screen Shot 2021-03-09 at 5.00.36 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 01:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1034771#M5795</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-03-10T01:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1034776#M5796</link>
      <description>&lt;P&gt; Python cursor solution is successful, too:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-03-09 at 5.08.12 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8013iC8DF623554B3F658/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-03-09 at 5.08.12 PM.png" alt="Screen Shot 2021-03-09 at 5.08.12 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 01:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1034776#M5796</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-03-10T01:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1169145#M6249</link>
      <description>&lt;P&gt;Hello Stephen,&lt;BR /&gt;&lt;BR /&gt;I faced a similar issue. The following code worked for me -&lt;BR /&gt;&lt;BR /&gt;Max($Field1,$Field2)&lt;BR /&gt;&lt;BR /&gt;Expression type - Arcade.&lt;BR /&gt;&lt;BR /&gt;Regards, Kedar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 04:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1169145#M6249</guid>
      <dc:creator>KedaravindanBhaskar</dc:creator>
      <dc:date>2022-04-29T04:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1544710#M7316</link>
      <description>&lt;P&gt;Hi Darren,&lt;/P&gt;&lt;P&gt;If I have 300 fields, if there a way to loop through all fields to find the max without list all fields manually?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 13:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1544710#M7316</guid>
      <dc:creator>TokiLee</dc:creator>
      <dc:date>2024-10-02T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Max value among Fields</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1547339#M7322</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516020/highlight/true#M86553" target="_self"&gt;Symbolise by maximum value field's name&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 20:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/1547339#M7322</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-10-09T20:39:24Z</dc:date>
    </item>
  </channel>
</rss>

