<?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: Issues Symbolizing based on Arcade Expression in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225604#M12829</link>
    <description>&lt;P&gt;Is it possible that the join layer has multiple records in it for a given point? If your main points layer is where the popups are coming from, you won't get a "1 of x" notice, but check that join layer. If there are more than one points at the same spot, the symbols will show in ascending objectid order, unless otherwise specified, and an older inspection will symbolize on top of a newer one.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 13:06:38 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-10-26T13:06:38Z</dc:date>
    <item>
      <title>Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225599#M12828</link>
      <description>&lt;P&gt;I have a spatial view of a valve feature and its related table.&amp;nbsp; I used the below Arcade expression to symbolize the valves based on the last inspection date:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;var DateDifference = DateDiff(Today(), $feature.InspectionDate, "month")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;if (DateDifference &amp;lt;= 12){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;return 'Within 12 Months'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;} &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;else if(DateDifference &amp;lt;= 14){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;return '12-14 Months'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;else if(DateDifference == 14){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;return '14 Months'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;else {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;return 'Over 14 Months'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Not all of the valves are being symbolized correctly, however.&lt;/P&gt;&lt;P&gt;The valve point feature is layered underneath the spatial join in the map, and its pop-up uses an arcade expression to show the last inspection date from the related table.&amp;nbsp; In the screenshow below, you can see that a valve that was inspected 5 months ago is being symbolized as being inspected more than 14 months ago.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonCyphers_0-1666788321595.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54449i4FA9991700A9D604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonCyphers_0-1666788321595.png" alt="JasonCyphers_0-1666788321595.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225599#M12828</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-10-26T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225604#M12829</link>
      <description>&lt;P&gt;Is it possible that the join layer has multiple records in it for a given point? If your main points layer is where the popups are coming from, you won't get a "1 of x" notice, but check that join layer. If there are more than one points at the same spot, the symbols will show in ascending objectid order, unless otherwise specified, and an older inspection will symbolize on top of a newer one.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225604#M12829</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-26T13:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225606#M12830</link>
      <description>&lt;P&gt;That could be the case.&lt;/P&gt;&lt;P&gt;I tried adding an "OrderBy" clause to the expression, but receive a "&lt;SPAN class=""&gt;Parse Error:&lt;/SPAN&gt;&lt;SPAN&gt;orderby is not available" error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225606#M12830</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-10-26T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225612#M12831</link>
      <description>&lt;P&gt;I think AGOL recently added a display order setting to the new map viewer, so that you could have symbols' z-index set by an attribute. Maybe that's in the latest Portal, too, but I'm still on 10.9.1, so I don't know for sure.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225612#M12831</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-26T13:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225616#M12832</link>
      <description>&lt;P&gt;Thanks for the feedback.&amp;nbsp; I'm on Portal 10.8; so, it might be a lost cause.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225616#M12832</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-10-26T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225618#M12833</link>
      <description>&lt;P&gt;Well, how are you performing that join? It's possible that process could be amended to filter older records for a given feature.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225618#M12833</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-26T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225620#M12834</link>
      <description>&lt;P&gt;The join is being hosted on our SQL server, and is published to Portal.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225620#M12834</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-10-26T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Symbolizing based on Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225623#M12835</link>
      <description>&lt;P&gt;Got it. Well, what about something like a row number?&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;WITH your_query as (
  SELECT 
    fields, 
    you, 
    want, 
    ROW_NUMBER() OVER(
      PARTITION BY point_id 
      ORDER BY 
        inspection_date DESC
    ) AS rn 
  FROM 
    some_table t1 
    JOIN other_table t2 on t1.id = t2.id
) 
SELECT 
  fields, 
  you, 
  want 
FROM 
  query 
WHERE 
  rn = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/issues-symbolizing-based-on-arcade-expression/m-p/1225623#M12835</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-26T13:40:58Z</dc:date>
    </item>
  </channel>
</rss>

