<?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 Help in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150380#M12072</link>
    <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;That formula appears to return the same results as mine.&lt;/P&gt;&lt;P&gt;I need a way to only look at, and symbolize based on the most recent inspection date.&amp;nbsp; If it was inspected in 2020 and 2021, I only want it to look at the 2020 date to see if it is within 14 months of today.&amp;nbsp; Right now, it's looking at both years, and places two points on the map.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 20:52:50 GMT</pubDate>
    <dc:creator>JasonCyphers</dc:creator>
    <dc:date>2022-03-03T20:52:50Z</dc:date>
    <item>
      <title>Arcade Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150287#M12070</link>
      <description>&lt;P&gt;I have an arcade expression symbolizing a feature (valve) and related table (valve inspection) join.&lt;/P&gt;&lt;P&gt;I created an arcade expression to symbolize on the map based on inspection date being within 14 months of today:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IIF(DateDiff(now(), $feature.InspectionDate, 'months') &amp;lt; 14, "Last Inspection Within 14 Months", "Last Inspection &amp;gt; 14 Months")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Works great, except it's symbolizing all the records (thousands of them) from the previous years.&lt;/P&gt;&lt;P&gt;Is there additional expressions I can include to only look at the most recent inspection date, and determine if that is within 14 months of "now"?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 18:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150287#M12070</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-03-03T18:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150374#M12071</link>
      <description>&lt;P&gt;maybe something like this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var DateDifference = DateDiff(Today(), $feature.InspectionDate, "month")
if (DateDifference &amp;lt;= 14){
    return 'Last Inspection Within 14 Months'
} 
else if (DateDifference &amp;gt; 14){
    return 'Last Inspection &amp;gt; 14 Months'
} 
else {
    return 'Not yet inspected'
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 20:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150374#M12071</guid>
      <dc:creator>MarcoPoetsch</dc:creator>
      <dc:date>2022-03-03T20:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150380#M12072</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;That formula appears to return the same results as mine.&lt;/P&gt;&lt;P&gt;I need a way to only look at, and symbolize based on the most recent inspection date.&amp;nbsp; If it was inspected in 2020 and 2021, I only want it to look at the 2020 date to see if it is within 14 months of today.&amp;nbsp; Right now, it's looking at both years, and places two points on the map.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 20:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150380#M12072</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-03-03T20:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150399#M12073</link>
      <description>&lt;P&gt;Hmm, in this case I think I would use the filter option in the web map to exclude all inspections older 14 months.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoPoetsch_1-1646341775992.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35527i75CE0C4B4DD7553B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoPoetsch_1-1646341775992.png" alt="MarcoPoetsch_1-1646341775992.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what I usual do to separate features based on date. If the inspections &amp;gt;14months are still important (for stats or whatever) you could make a copy of the layer and exclude/modify the filter expression.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150399#M12073</guid>
      <dc:creator>MarcoPoetsch</dc:creator>
      <dc:date>2022-03-03T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Help</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150610#M12074</link>
      <description>&lt;P&gt;That was my original plan, but I don't have that "in the last" option for some reason.&lt;/P&gt;&lt;P&gt;I am in Portal 10.8.1; so, I don't know if maybe Map Viewer (Beta) doesn't have that option in this version.&amp;nbsp; I see it in AGOL, but not in my Portal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonCyphers_0-1646392274533.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35588i2E0506AECE0BE81D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonCyphers_0-1646392274533.png" alt="JasonCyphers_0-1646392274533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 11:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-help/m-p/1150610#M12074</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2022-03-04T11:14:47Z</dc:date>
    </item>
  </channel>
</rss>

