<?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: Dashboard- Arcade Last edit date in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085546#M4892</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a blog that has helped.&amp;nbsp;I can sort by last edit date. I can also tell it to display only 1 record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/making-an-auto-focusing-real-time-dashboard/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/making-an-auto-focusing-real-time-dashboard/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 23:00:27 GMT</pubDate>
    <dc:creator>RickeyFight</dc:creator>
    <dc:date>2021-08-03T23:00:27Z</dc:date>
    <item>
      <title>Dashboard- Arcade Last edit date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085464#M4887</link>
      <description>&lt;P&gt;I am trying to figure out how to get the last edited feature to be the one filtered out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works for part of the day. There are just a few hours where it does not work. From 10am (local time) until I enter that days data.&amp;nbsp; I usually enter new data midday.&amp;nbsp; It does not pull in the last edited based on time. It pulls in based on date and when there are two from the same day it will pull the wrong feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get No Value because it is pulling the wrong edit date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RickeyFight_0-1628019410149.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20064i11F8A3B76CD08E93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RickeyFight_0-1628019410149.jpeg" alt="RickeyFight_0-1628019410149.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var portal = Portal("https:///portal/");
var fs = FeatureSetByPortalItem(
  portal,
  "",
  1,
  [
    "Date_",
    "W_F_MGD",
    "E_F_MGD",
    "TOTAL_W_E_MGD",
    "TID_FLOW_MGD",
    "REEDER_Percent_FULL",
    "TAP_FLOW_MGD",
    "PLANT_PRODUCTION_MGD",
    "last_edited_date"
  ],
  false
);


// Find the most recent date from the date field to filter the FeatureSet for the latest record
var maxDate = Text(Date(ToLocal(Max(fs, 'last_edited_date'))),"YYYY-MM-DD");
return Filter(fs, "Date_ = @maxDate");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 19:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085464#M4887</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-08-03T19:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard- Arcade Last edit date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085508#M4888</link>
      <description>&lt;P&gt;Can you just find the greatest difference in milliseconds between your UTC last-edited date and another arbitrary date?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var date1 = Date(2020, 1, 1, 1, 1, 1)
var date2 = Now()

return DateDiff(date2, date1)&lt;/LI-CODE&gt;&lt;P&gt;Also you have 'Inputted' and 'Inputed', I'm not sure ieitheris the correct word as isn't that past tense? Possibly 'input' or 'entered'? Just my 5 cents.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 21:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085508#M4888</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-08-03T21:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard- Arcade Last edit date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085514#M4890</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have fixed the typo thanks. My hope is that if I get this figured out I will not have to worry about which is correct because some data should always be displayed.&amp;nbsp;&lt;BR /&gt;I do like the idea of getting the greatest difference. I just need to figure out how to apply it now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 21:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085514#M4890</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-08-03T21:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard- Arcade Last edit date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085546#M4892</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a blog that has helped.&amp;nbsp;I can sort by last edit date. I can also tell it to display only 1 record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/making-an-auto-focusing-real-time-dashboard/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/making-an-auto-focusing-real-time-dashboard/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 23:00:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085546#M4892</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-08-03T23:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard- Arcade Last edit date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085650#M4894</link>
      <description>&lt;P&gt;That seems much simpler.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-arcade-last-edit-date/m-p/1085650#M4894</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-08-04T12:44:51Z</dc:date>
    </item>
  </channel>
</rss>

