<?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: Using arcade to symbolize multiple attributes in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411796#M20629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/mmusman_CaseyTrees"&gt;mmusman_CaseyTrees&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad it works. Could you mark the post that answered your question as the correct answer? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2020 22:46:10 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2020-06-09T22:46:10Z</dc:date>
    <item>
      <title>Using arcade to symbolize multiple attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411793#M20626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi all, I have a short expression written to&amp;nbsp;symbolize my points by last edit date when they are updated in the field.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;I'm also trying to symbolize by the year each point was created, which is specified in one my fields.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;So what I'm trying to do is have each year be assigned a color, i.e. 2017 = yellow, 2018 = purple, 2019 = orange, and then have&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;all three years change to one uniform color once they are edited by our field staff.&amp;nbsp; H&lt;/SPAN&gt;ere's what I have to change symbology by date edited.&amp;nbsp;Any suggestions for including year edited in this?&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var water_date = $feature.EditDate;
var days_dif = DateDiff(Now(), water_date, "days");
var result = "water status";
if (days_dif &amp;lt;= 14) {
 result = "Complete";
} else if (days_dif &amp;gt; 14) {
 result = "Needs Water";
} 
return result;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411793#M20626</guid>
      <dc:creator>MichailaMusman</dc:creator>
      <dc:date>2021-12-11T18:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcade to symbolize multiple attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411794#M20627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/mmusman_CaseyTrees" target="_blank"&gt;mmusman_CaseyTrees&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you correctly, you probably could use the expression below that combines the creation year and the status that you already have:&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; water_date &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;EditDate&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; create_date &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreationDate&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// change to the fieldname in your data&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; days_dif &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DateDiff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Now&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; water_date&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"days"&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;var&lt;/SPAN&gt; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"water status"&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;days_dif &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Complete"&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="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;days_dif &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Needs Water"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; 
result &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;create_date&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" - "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; result&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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411794#M20627</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcade to symbolize multiple attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411795#M20628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Xander!&amp;nbsp; This worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 18:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411795#M20628</guid>
      <dc:creator>MichailaMusman</dc:creator>
      <dc:date>2020-06-09T18:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcade to symbolize multiple attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411796#M20629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/mmusman_CaseyTrees"&gt;mmusman_CaseyTrees&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad it works. Could you mark the post that answered your question as the correct answer? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 22:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/411796#M20629</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-09T22:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcade to symbolize multiple attributes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/1098706#M42182</link>
      <description>&lt;P&gt;I have a similar request. I need to symbolize valves on three fields, Valve type, Valve Position and Valve Exercise date. I've got an Arcade expression that groups the date into year, but I would love to add the Valve Type, and the Valve Position.&lt;/P&gt;&lt;P&gt;This is what my Arcade expression looks like:&lt;/P&gt;&lt;P&gt;var timestamp2021 = Date($feature.LASTSERVICE)&lt;BR /&gt;if (timestamp2021 &amp;gt;= Date(2021,01,01) &amp;amp;&amp;amp; timestamp2021 &amp;lt; Date(2022,01,01)){return "2021-01-01 - 2022-01-01"}&lt;BR /&gt;var timestamp2020 = Date($feature.LASTSERVICE)&lt;BR /&gt;if (timestamp2020 &amp;gt;= Date(2020,01,01) &amp;amp;&amp;amp; timestamp2020 &amp;lt; Date(2021,01,01)){return "2020-01-01 - 2021-01-01"}&lt;BR /&gt;var timestamp2019 = Date($feature.LASTSERVICE)&lt;BR /&gt;if (timestamp2019 &amp;gt;= Date(2019,01,01) &amp;amp;&amp;amp; timestamp2019 &amp;lt; Date(2020,01,01)){return "2019-01-01 - 2020-01-01"}&lt;BR /&gt;else {return "Some earlier date range"}&lt;/P&gt;&lt;P&gt;Is this at all possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 21:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-to-symbolize-multiple-attributes/m-p/1098706#M42182</guid>
      <dc:creator>RenRosin</dc:creator>
      <dc:date>2021-09-15T21:59:46Z</dc:date>
    </item>
  </channel>
</rss>

