<?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: Calculating the highest value of a field in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699459#M66112</link>
    <description>&lt;P&gt;Whats your full pulldata() calculation?&amp;nbsp; or can you share your xlsx example?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2026 20:13:46 GMT</pubDate>
    <dc:creator>Neal_t_k</dc:creator>
    <dc:date>2026-04-30T20:13:46Z</dc:date>
    <item>
      <title>Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699441#M66106</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am using the solution suggested by Ismael in this &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/how-to-query-all-features-and-return-the-highest/td-p/1021040" target="_self"&gt;post&lt;/A&gt; to calculate the next highest value in the &lt;EM&gt;idlong&lt;/EM&gt; field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsinha_0-1777575672118.png" style="width: 666px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151822i9944C3B76573C9CC/image-dimensions/666x20?v=v2" width="666" height="20" role="button" title="dsinha_0-1777575672118.png" alt="dsinha_0-1777575672118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are no error messages but the value that is being produced is 401 (in ArcGIS Survey123 Connect) instead of&amp;nbsp;18320972.&lt;/P&gt;&lt;P&gt;Any clue what I could be doing wrong?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 19:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699441#M66106</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-04-30T19:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699448#M66108</link>
      <description>&lt;P&gt;Something else you could try:&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;pulldata("@layer", "getValue",""attributes.&amp;lt;idlong&amp;gt;", "&lt;/SPAN&gt;&amp;lt;url&amp;gt;&amp;nbsp;&lt;FONT color="#000000"&gt;?orderByFields=&amp;lt;idlong&amp;gt;&amp;nbsp;DESC&lt;/FONT&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;This should sort greatest to least and return the greatest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415" target="_blank"&gt;Survey123 Tricks of the Trade: pulldata("@layer") - Esri Community &lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 19:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699448#M66108</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-30T19:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699452#M66109</link>
      <description>&lt;P&gt;Thanks for the suggestion&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;. Where should I put the new expression: before I calculate the &lt;EM&gt;idlong_count&lt;/EM&gt; field?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 19:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699452#M66109</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-04-30T19:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699453#M66110</link>
      <description>&lt;P&gt;You can replace&amp;nbsp; the pulldata (@javascript) function with it.&amp;nbsp; And obviously update the &amp;lt;xyz&amp;gt; with your appropriate info.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 19:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699453#M66110</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-30T19:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699457#M66111</link>
      <description>&lt;P&gt;Sorry &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;, it did not work. I am getting a blank now for idlong instead of a value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 20:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699457#M66111</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-04-30T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699459#M66112</link>
      <description>&lt;P&gt;Whats your full pulldata() calculation?&amp;nbsp; or can you share your xlsx example?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 20:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699459#M66112</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-30T20:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699461#M66113</link>
      <description>&lt;P&gt;Thanks for taking the time&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;.&amp;nbsp;I have attached the XLSX file. I am also including the javascript.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 14:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699461#M66113</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-05-01T14:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699465#M66114</link>
      <description>&lt;P&gt;What is the attribute name of the field in your feature service that contains the idlong data.&amp;nbsp; In your pulldata&amp;nbsp;@javascript function you are referenceing ${idlong} which you are calculating with the results. The results of the calculation should return a number and not a field name. probably why it is returning 401, because it is a cyclic redundancy.&amp;nbsp; You should hardcode that field name from your feature service instead of referencing a question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neal_t_k_0-1777581174950.png" style="width: 587px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151827i2B562FE9C644D8F3/image-dimensions/587x44?v=v2" width="587" height="44" role="button" title="Neal_t_k_0-1777581174950.png" alt="Neal_t_k_0-1777581174950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I still think you&amp;nbsp; could&amp;nbsp;try using this by replacing "&amp;lt;idlong&amp;gt;" with your field name that contains the idlong data your are trying to return.&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;pulldata("@layer", "getValue",""attributes.&amp;lt;idlong&amp;gt;", "https://arcgissvr.borough.carlislepa.org/server/rest/services/Hosted/DataCollectionInspection/FeatureServer/0?orderByFields=&amp;lt;idlong&amp;gt; DESC"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 20:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699465#M66114</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-30T20:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699572#M66123</link>
      <description>&lt;P&gt;Unfortunately, I am not sure how to hardcade a field name. Thanks for all your help though &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 14:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699572#M66123</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-05-01T14:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the highest value of a field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699578#M66124</link>
      <description>&lt;P&gt;Right here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neal_t_k_0-1777646587323.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151849iEAF5E279B79EB0D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neal_t_k_0-1777646587323.png" alt="Neal_t_k_0-1777646587323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;instead of calling a question from the form. insert the name of the field in your feature service corresponding to the idlong data.&amp;nbsp; so instead of ${idlong}&amp;nbsp; to would be "idlong" assuming that is your field name.&lt;/P&gt;&lt;P&gt;or in the pulldata&amp;nbsp;@layer it would be:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;pulldata("@layer", "getValue",""attributes.idlong", "https://arcgissvr.borough.carlislepa.org/server/rest/services/Hosted/DataCollectionInspection/FeatureServer/0?orderByFields=idlong DESC")
 &lt;/LI-CODE&gt;&lt;P&gt;again assuming idlong is the field name in the feature service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 15:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-the-highest-value-of-a-field/m-p/1699578#M66124</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-05-01T15:13:45Z</dc:date>
    </item>
  </channel>
</rss>

