<?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 New Map Viewer Arcade symbology expression - how to make it work if missing data? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508899#M40066</link>
    <description>&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;I have an arcade expression in Map Viewer that looks at a service with a field that updates near real time:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;activity_label2&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;When&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MINUTES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;15&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'15 min'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MINUTES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MINUTES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;60&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'60 min'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Inactive"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;activity_label2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It essentially sets up the symbology into three categories depending on the field value. It is fine if the dataset has enough data to "fill the buckets". It allows me to customize the symbology at that point. However, if the dataset doesn't meet all 3 category criteria, then I am unable to customize the missing categories. This makes it hard to give my users a web map that has complete symbology that will appear once that data comes in. Any ideas how to get around this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2024 21:07:27 GMT</pubDate>
    <dc:creator>maximeglobus</dc:creator>
    <dc:date>2024-07-23T21:07:27Z</dc:date>
    <item>
      <title>New Map Viewer Arcade symbology expression - how to make it work if missing data?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508899#M40066</link>
      <description>&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;I have an arcade expression in Map Viewer that looks at a service with a field that updates near real time:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;activity_label2&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;When&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MINUTES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;15&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'15 min'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MINUTES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;MINUTES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;60&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'60 min'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Inactive"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;activity_label2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It essentially sets up the symbology into three categories depending on the field value. It is fine if the dataset has enough data to "fill the buckets". It allows me to customize the symbology at that point. However, if the dataset doesn't meet all 3 category criteria, then I am unable to customize the missing categories. This makes it hard to give my users a web map that has complete symbology that will appear once that data comes in. Any ideas how to get around this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508899#M40066</guid>
      <dc:creator>maximeglobus</dc:creator>
      <dc:date>2024-07-23T21:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: New Map Viewer Arcade symbology expression - how to make it work if missing data?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508912#M40067</link>
      <description>&lt;P&gt;I have one suggestion that I've used: before you commit the arcade expression, fake some data that would allow all three categories to exist. Then the expression will find all three, you can save it, then delete the dummy data. Inelegant, but it works.&lt;/P&gt;&lt;P&gt;Also, I had this exact conversation with Allison Rost from ESRI after her presentation at the conference last week and she was going to send me a piece of code that she says helps get around this issue. I'll post it here when I get it.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508912#M40067</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-07-23T21:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: New Map Viewer Arcade symbology expression - how to make it work if missing data?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508914#M40068</link>
      <description>&lt;P&gt;Thank you for the reply. That is great news about the code, thank you being open to share it. I will also keep your solution in my back pocket if I need to fall back onto it.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508914#M40068</guid>
      <dc:creator>maximeglobus</dc:creator>
      <dc:date>2024-07-23T21:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: New Map Viewer Arcade symbology expression - how to make it work if missing data?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508921#M40069</link>
      <description>&lt;P&gt;To handle missing data in the new Map Viewer Arcade symbology expression, you can use conditional statements to provide default values or alternative expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 21:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508921#M40069</guid>
      <dc:creator>jelisjack</dc:creator>
      <dc:date>2024-07-23T21:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: New Map Viewer Arcade symbology expression - how to make it work if missing data?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508938#M40070</link>
      <description>&lt;P&gt;I've also gone the route of altering my data to get the correct symbology before reverting it back to its original state. I'll look forward to that code you provide!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 22:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/new-map-viewer-arcade-symbology-expression-how-to/m-p/1508938#M40070</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-07-23T22:46:19Z</dc:date>
    </item>
  </channel>
</rss>

