<?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: Most recent (max) date in dashboards? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334386#M1891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakub,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find an answer to this question? I am also interested in learning how to show the most recent date instead of "today." We have several dashboards we have developed as part of our county's COVID-19 response. The data update frequency varies so I am having a difficult time setting up the date filters in my dashboards. I have to manually change the date filters which is very cumbersome. I could set up a custom attribute expression in a web map to get the most recent date, however, the custom expressions can't be used in operations dashboard. So I am also stumped on how to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2020 14:15:02 GMT</pubDate>
    <dc:creator>MollyWatson1</dc:creator>
    <dc:date>2020-04-14T14:15:02Z</dc:date>
    <item>
      <title>Most recent (max) date in dashboards?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334385#M1890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to show MOST RECENT data in my dashboard. (Using most recent date, not today's date, MOst recent date can vary) I already have feature service layers in my map that are in SDE (SQL Server) which have definition queries to only show most recent data. Works fine in a map but NO dashboards elements will work with these layers - the elements simply don't show any data - a small warning sign is displayed in the element and when i hover over it it says "Cannot Access Data" and the element says "No Data"&lt;/P&gt;&lt;P&gt;The workaround would be to NOT use a definition query in the feature layers in the map and filter the data using MOST RECENT DATE in the Dashboard. But "Latest", "Most Recent", "Max" for a date field is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas for a workaround?&amp;nbsp; My definition query in the feature layers relies on the fact that the back-end database is an SQL Server so "Date_Field IN (SELECT max( Date_Field ) FROM Feature_Class_Name" query works. However this query would not work in FGDB.&amp;nbsp; Is there any way to make it work in my Dashboard or any other workaround that can display my dashboard data using the MOST RECENT DATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen capture shows indicator element not being able to access data from a layer that has a "max date" definition query defined:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Indicator Element - when layer in map has Max Date definition query" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480335_Indicator.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334385#M1890</guid>
      <dc:creator>JakubSisak</dc:creator>
      <dc:date>2020-02-05T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent (max) date in dashboards?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334386#M1891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakub,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find an answer to this question? I am also interested in learning how to show the most recent date instead of "today." We have several dashboards we have developed as part of our county's COVID-19 response. The data update frequency varies so I am having a difficult time setting up the date filters in my dashboards. I have to manually change the date filters which is very cumbersome. I could set up a custom attribute expression in a web map to get the most recent date, however, the custom expressions can't be used in operations dashboard. So I am also stumped on how to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 14:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334386#M1891</guid>
      <dc:creator>MollyWatson1</dc:creator>
      <dc:date>2020-04-14T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Most recent (max) date in dashboards?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334387#M1892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My supervisor found this blog post which is helpful in formatting your elements to only show the data for the most recent date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/246919-most-recent-feature-in-indicator-widget"&gt;https://community.esri.com/thread/246919-most-recent-feature-in-indicator-widget&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;To achieve this,&amp;nbsp;&lt;STRONG&gt;Sort By&lt;/STRONG&gt;&amp;nbsp;a date field (e.g., last edited) in descending order. Then, set&amp;nbsp;&lt;STRONG&gt;Maximum Features Displayed&amp;nbsp;&lt;/STRONG&gt;to 1. It will only display the newest feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;This method works well if you are using a feature as your source for the dashboard element. If you need to conduct a statistic (like sum) to get the value, then the sorting function isn't available.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 22:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/most-recent-max-date-in-dashboards/m-p/334387#M1892</guid>
      <dc:creator>MollyWatson1</dc:creator>
      <dc:date>2020-04-14T22:40:11Z</dc:date>
    </item>
  </channel>
</rss>

