<?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 Symbology Issue in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316013#M15827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I republished my data this morning and now my original expression wasn't generating counts like it originally did.&amp;nbsp; I checked the data type for my date field and its a string data type.&amp;nbsp; Pretty sure it is a date field in the source data but I'll have to check on that later. Used some of your expression and got it all working, thanks for the tips!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the final working expression:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440936_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2019 00:13:48 GMT</pubDate>
    <dc:creator>DavidMathern</dc:creator>
    <dc:date>2019-04-02T00:13:48Z</dc:date>
    <item>
      <title>Arcade Symbology Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316010#M15824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue using an Arcade expression to symbolize my data in an AGOL Web Map.&amp;nbsp; My data consists of a bunch of points which have a date field that shows the last time the point was visited.&amp;nbsp; I'm trying to write an Arcade expression to extract the year out of the date field for symbolization.&amp;nbsp; The expression I'm using seems to work as intended when tested but all of the points show up the same color on the map.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example of an entry in the date field:&amp;nbsp;5/30/2017, 8:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my Arcade Expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #f7f7f7;"&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/440764_pastedImage_5.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my symbology menu showing that there is a count for each year category.&amp;nbsp; Like I mentioned above, all the points show up the same color in the web map, the red "To Be Inventoried."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #f7f7f7;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440763_pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to note that I am using a Filter on the data to exclude points that are no longer visited.&amp;nbsp; I'm not an expert on Arcade expressions so if there's a better way I could be achieving my goal, I'm open to suggestions.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316010#M15824</guid>
      <dc:creator>DavidMathern</dc:creator>
      <dc:date>2019-03-29T13:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Symbology Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316011#M15825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your script could be shortend, like this (if I understand it correctly):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; invYear &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Year&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;INV_DT&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;invYear &lt;SPAN class="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2017&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;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Text&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;invYear&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"0000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&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;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"To Be Inventoried"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this does not explain that you only see "To Be Inventoried" as result. The result of the expression with the counts for each year indicates that the expression is applied correctly and you have points in each class. Some things to validate:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What does your filter look like?&lt;/LI&gt;&lt;LI&gt;Your date field is really a date?&lt;/LI&gt;&lt;LI&gt;You are zoomed to an area where you should have other results than only "To Be Inventoried"?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316011#M15825</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T15:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Symbology Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316012#M15826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could also be the case that&amp;nbsp;some of your points are being hidden. Based on the symbology, all of the red (To Be Inventoried) points appear on top as they are at the top of the symbology list. If these cover all of the points from 2019/2018/2017 then the other points will be hidden. Dragging the 'To Be Inventoried' points to the bottom of the symbology may reveal all, or at least others...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 21:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316012#M15826</guid>
      <dc:creator>MichaelKelly3</dc:creator>
      <dc:date>2019-04-01T21:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Symbology Issue</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316013#M15827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I republished my data this morning and now my original expression wasn't generating counts like it originally did.&amp;nbsp; I checked the data type for my date field and its a string data type.&amp;nbsp; Pretty sure it is a date field in the source data but I'll have to check on that later. Used some of your expression and got it all working, thanks for the tips!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the final working expression:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440936_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 00:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-symbology-issue/m-p/316013#M15827</guid>
      <dc:creator>DavidMathern</dc:creator>
      <dc:date>2019-04-02T00:13:48Z</dc:date>
    </item>
  </channel>
</rss>

