<?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: Date Filters - Last Week in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137571#M3592</link>
    <description>&lt;P&gt;Have you tried the expression builder in the filter widget?&lt;/P&gt;&lt;P&gt;It has a last week option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rzufelt_1-1643225730011.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32406iCD3387D2DB8024E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rzufelt_1-1643225730011.png" alt="rzufelt_1-1643225730011.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 19:35:35 GMT</pubDate>
    <dc:creator>RichlandGIS</dc:creator>
    <dc:date>2022-01-26T19:35:35Z</dc:date>
    <item>
      <title>Date Filters - Last Week</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137455#M3587</link>
      <description>&lt;P&gt;I've report experience that I want to show/report data within the last week. Data for the report is run only on a Friday, covering Friday 5pm to following Friday at same time (inc weekends) and I don't want to lose the visibility of information as "7 days" pass, same for "1 week".&lt;BR /&gt;&lt;BR /&gt;Is there an easy way, just to filter for "Date Last Week"?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137455#M3587</guid>
      <dc:creator>JonathanMcDougall</dc:creator>
      <dc:date>2022-01-26T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filters - Last Week</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137571#M3592</link>
      <description>&lt;P&gt;Have you tried the expression builder in the filter widget?&lt;/P&gt;&lt;P&gt;It has a last week option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rzufelt_1-1643225730011.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32406iCD3387D2DB8024E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rzufelt_1-1643225730011.png" alt="rzufelt_1-1643225730011.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 19:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137571#M3592</guid>
      <dc:creator>RichlandGIS</dc:creator>
      <dc:date>2022-01-26T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filters - Last Week</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137739#M3595</link>
      <description>&lt;P&gt;Hi, thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I should have perhaps been more specific - the last 1 week counts back 7 days from today and I'm also looking to have this filter used to create dynamic text.&lt;BR /&gt;&lt;BR /&gt;eg; Number of objects created last week; 999 (filter being "Date is Last Week", a change of xxx.&lt;BR /&gt;&lt;BR /&gt;So, last week one or even last 7 days moves forward with every new calendar day. A "is Last Week" option would "cement" the return to a set period.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 00:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1137739#M3595</guid>
      <dc:creator>JonathanMcDougall</dc:creator>
      <dc:date>2022-01-27T00:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filters - Last Week</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1138593#M3609</link>
      <description>&lt;P&gt;One option would be to put an Arcade expression on the symbology in the web map and only have it draw the features with date of "Last Week".&lt;/P&gt;&lt;P&gt;Not sure how you would do the math to find the difference, but can easily make the map display only them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var draw = Null;

if (Year($feature.CreationDate) == Year(Now()) &amp;amp;&amp;amp; Week($feature.CreationDate) == (Week(Now())-1)){
draw = "Yes";
}
return draw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick test with the above Arcade (and turn off "other values" in symbology tab) will only draw data from last week.&lt;/P&gt;&lt;P&gt;Selects by week number, so put the year comparison in there so it doesn't grab everything from that "week" regardless of year.&lt;/P&gt;&lt;P&gt;Would have to modify it a little to handle the first week of the year (Week = 0) as some of it might get filtered out due to the year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 00:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/date-filters-last-week/m-p/1138593#M3609</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-01-29T00:17:24Z</dc:date>
    </item>
  </channel>
</rss>

