<?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 Dynamic Date Filter to Show Current Year Only in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617659#M64855</link>
    <description>&lt;P&gt;I'd like to setup a filter in an AGOL web map to only display features with a date attribute in the current calendar year. I.e., show all features in the current calendar year '2025', but when the year changes the map will automatically update to only show features with dates in '2026' and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One option is to set the filter to be after January 1 of the current year, but this requires a manual intervention to update the date at the start of each year:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mwartman_grey_0-1747933520100.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133038iBADCED99D71B6E9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mwartman_grey_0-1747933520100.png" alt="mwartman_grey_0-1747933520100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also 'in the last' filter, but this includes all dates in the past year, not by the calendar year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mwartman_grey_1-1747933566573.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133041i601D643658CD9560/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mwartman_grey_1-1747933566573.png" alt="mwartman_grey_1-1747933566573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found &lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-create-a-dynamic-date-filter-for-a-feature-layer-000027700" target="_self"&gt;this resource&lt;/A&gt; but this doesn't work with symbology with unique values, and it only hides features (the pop-ups still appear).&lt;/P&gt;&lt;P&gt;Feeling stuck here.&amp;nbsp;Is there any way to set up a filter like this directly in a web map?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2025 17:17:17 GMT</pubDate>
    <dc:creator>mwartman_grey</dc:creator>
    <dc:date>2025-05-22T17:17:17Z</dc:date>
    <item>
      <title>Dynamic Date Filter to Show Current Year Only</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617659#M64855</link>
      <description>&lt;P&gt;I'd like to setup a filter in an AGOL web map to only display features with a date attribute in the current calendar year. I.e., show all features in the current calendar year '2025', but when the year changes the map will automatically update to only show features with dates in '2026' and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One option is to set the filter to be after January 1 of the current year, but this requires a manual intervention to update the date at the start of each year:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mwartman_grey_0-1747933520100.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133038iBADCED99D71B6E9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mwartman_grey_0-1747933520100.png" alt="mwartman_grey_0-1747933520100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also 'in the last' filter, but this includes all dates in the past year, not by the calendar year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mwartman_grey_1-1747933566573.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133041i601D643658CD9560/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mwartman_grey_1-1747933566573.png" alt="mwartman_grey_1-1747933566573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found &lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-create-a-dynamic-date-filter-for-a-feature-layer-000027700" target="_self"&gt;this resource&lt;/A&gt; but this doesn't work with symbology with unique values, and it only hides features (the pop-ups still appear).&lt;/P&gt;&lt;P&gt;Feeling stuck here.&amp;nbsp;Is there any way to set up a filter like this directly in a web map?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 17:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617659#M64855</guid>
      <dc:creator>mwartman_grey</dc:creator>
      <dc:date>2025-05-22T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date Filter to Show Current Year Only</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617684#M64857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/472412"&gt;@mwartman_grey&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;One way you can set the filter to start by calendar year is to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set the filter condition to &amp;lt;date field&amp;gt; IS YEAR TO DATE or&amp;nbsp;&amp;lt;date field&amp;gt; IS THIS YEAR&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 22 May 2025 17:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617684#M64857</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-05-22T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date Filter to Show Current Year Only</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617699#M64858</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22623"&gt;@RPGIS&lt;/a&gt;, not sure where to see those options in the map viewer filter builder. These are the date condition options I see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mwartman_grey_0-1747938270635.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133049iCD89BA6112CC9FAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mwartman_grey_0-1747938270635.png" alt="mwartman_grey_0-1747938270635.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 18:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617699#M64858</guid>
      <dc:creator>mwartman_grey</dc:creator>
      <dc:date>2025-05-22T18:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date Filter to Show Current Year Only</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617754#M64860</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/472412"&gt;@mwartman_grey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I realized that I was thinking of the filter that is used in the Dashboards. In terms of filtering by the current year, the best way is to usually create another field as text ( ex. "Current" ) if the year is equal to this year and filter by that value. There are python scripts that you can run to populate the field. You can go a step further by automating the script using .bat file and run using windows task scheduler.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 19:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1617754#M64860</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-05-22T19:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date Filter to Show Current Year Only</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1618319#M64868</link>
      <description>&lt;P&gt;I don't think this option exists directly in the Map Viewer. I have added it to the ArcGIS Online Ideas board:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/map-viewer-dynamic-date-filter-based-on-current/idi-p/1617769" target="_self"&gt;https://community.esri.com/t5/arcgis-online-ideas/map-viewer-dynamic-date-filter-based-on-current/idi-p/1617769&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/map-viewer-date-filter-today-after-today-date/idi-p/1330763" target="_self"&gt;https://community.esri.com/t5/arcgis-online-ideas/map-viewer-date-filter-today-after-today-date/idi-p/1330763&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 12:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/dynamic-date-filter-to-show-current-year-only/m-p/1618319#M64868</guid>
      <dc:creator>mwartman_grey</dc:creator>
      <dc:date>2025-05-26T12:14:45Z</dc:date>
    </item>
  </channel>
</rss>

