<?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 calculate on 4 integer fields not returning the actual max integer in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775419#M4837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be parsing fields 1 - 4 as text instead of numbers. I would try&amp;nbsp;forcing them to be read as integers using int():&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;max(int(${field1}), int(${field2}), int(${field3}), int(${field4})).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2019 13:20:12 GMT</pubDate>
    <dc:creator>BrittneyGibbons1</dc:creator>
    <dc:date>2019-08-21T13:20:12Z</dc:date>
    <item>
      <title>max calculate on 4 integer fields not returning the actual max integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775418#M4836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created an integer field with a calculation to display the highest number from 4 other integer fields.&amp;nbsp; So for field ${highest_number}, the calculation is max(${field1}, ${field2}, ${field3}, ${field4}).&amp;nbsp; Using these numbers as an example: 450, 290, 875, and 1285; 875 is returned as the max number because I assume it starts with the highest number but obviously 1285 is the highest number.&amp;nbsp; Any ideas on what is going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 12:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775418#M4836</guid>
      <dc:creator>KatieWise</dc:creator>
      <dc:date>2019-08-21T12:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: max calculate on 4 integer fields not returning the actual max integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775419#M4837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be parsing fields 1 - 4 as text instead of numbers. I would try&amp;nbsp;forcing them to be read as integers using int():&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;max(int(${field1}), int(${field2}), int(${field3}), int(${field4})).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 13:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775419#M4837</guid>
      <dc:creator>BrittneyGibbons1</dc:creator>
      <dc:date>2019-08-21T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: max calculate on 4 integer fields not returning the actual max integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775420#M4838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it!&amp;nbsp; Thank you so much.&amp;nbsp; I assumed it had something to do with that but wasn't sure the fix. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 13:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775420#M4838</guid>
      <dc:creator>KatieWise</dc:creator>
      <dc:date>2019-08-21T13:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: max calculate on 4 integer fields not returning the actual max integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775421#M4839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that worked! That happens to me all the time. Some fields that I expect to be numerical are processed as text instead, especially if I am using a select one with numerical values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 14:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775421#M4839</guid>
      <dc:creator>BrittneyGibbons1</dc:creator>
      <dc:date>2019-08-21T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: max calculate on 4 integer fields not returning the actual max integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775422#M4840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use the bind::type column set to int on the fields you want to check.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2019 16:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/max-calculate-on-4-integer-fields-not-returning/m-p/775422#M4840</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-08-21T16:24:21Z</dc:date>
    </item>
  </channel>
</rss>

