<?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: Arcade expression that returns the &amp;quot;Maximum&amp;quot; value, but excludes NULL values. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/1151715#M76594</link>
    <description>&lt;P&gt;I like the making it negative -999. Very simple way to remove it from MAX function&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 14:51:53 GMT</pubDate>
    <dc:creator>SharonUngerer_DNREC</dc:creator>
    <dc:date>2022-03-08T14:51:53Z</dc:date>
    <item>
      <title>Arcade expression that returns the "Maximum" value, but excludes NULL values.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/345272#M31866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use Arcade to create labels that show the highest value from a number of fields.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Field 1 (number field) contains the value -2.7&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Field 2 (number field) contains the value -2.5&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Field 3 (number field) is empty (NULL)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use the following expression:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Max (Field1, Field2, Field3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get "0" as a result, when I expect to get -2.5 as a result. How can I create an expression that ignores the NULL/empty field?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 14:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/345272#M31866</guid>
      <dc:creator>Guidovan_der_Kolk2</dc:creator>
      <dc:date>2017-01-07T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression that returns the "Maximum" value, but excludes NULL values.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/345273#M31867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the slow reply. &amp;nbsp;For math operations nulls will be returned as zeros. &amp;nbsp;My recommendation would be to test the variable for null values before evaluating and substituting it if need be for something you know will not impact the expression. &amp;nbsp;It might look something like this:&lt;/P&gt;&lt;P&gt;MAX(IIF (isEmpty($feature.Field1),-9999,$feature.Field1),&lt;SPAN&gt;IIF (isEmpty($feature.&lt;/SPAN&gt;&lt;SPAN&gt;Field2&lt;/SPAN&gt;&lt;SPAN&gt;),-9999,$feature.Field2),IIF (isEmpty($feature.&lt;SPAN&gt;Field3&lt;/SPAN&gt;&lt;SPAN&gt;),-9999,$feature.Field3))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/345273#M31867</guid>
      <dc:creator>PaulBarker</dc:creator>
      <dc:date>2017-02-13T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression that returns the "Maximum" value, but excludes NULL values.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/1151715#M76594</link>
      <description>&lt;P&gt;I like the making it negative -999. Very simple way to remove it from MAX function&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 14:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcade-expression-that-returns-the-quot-maximum/m-p/1151715#M76594</guid>
      <dc:creator>SharonUngerer_DNREC</dc:creator>
      <dc:date>2022-03-08T14:51:53Z</dc:date>
    </item>
  </channel>
</rss>

