<?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: Use DateDiff function in Operations Dashboard Indicator? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/use-datediff-function-in-operations-dashboard/m-p/384824#M19264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just discovered ArcGIS Online Assistant.&amp;nbsp; First I created a new hosted feature layer view in AGOL and set a filter on it.&amp;nbsp; Then I logged into AGOL Assistant and selected "View an Item's JSON" in the "I Want to..." menu.&amp;nbsp; I then selected the new feature layer view and scrolled down to the Data window.&amp;nbsp; I clicked the edit icon at the top of this window and found the layer definition property "layerDefinition".&amp;nbsp; Then I edited the JSON to look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"layerDefinition": {&lt;BR /&gt; "definitionExpression": "EditDate &amp;lt;=DATEADD(day,14,convert(date,CreationDate))",&lt;BR /&gt; "defaultVisibility": true&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this seems to have worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2018 16:04:39 GMT</pubDate>
    <dc:creator>JamieLeitch1</dc:creator>
    <dc:date>2018-06-04T16:04:39Z</dc:date>
    <item>
      <title>Use DateDiff function in Operations Dashboard Indicator?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-datediff-function-in-operations-dashboard/m-p/384823#M19263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got an operations dashboard set up in AGOL.&amp;nbsp; I want to add an indicator to the dashboard that shows the number of records that have EditDate attribute that is&amp;nbsp;within&amp;nbsp;14 days after the CreationDate attribute.&amp;nbsp; It doesn't seem possible to do a calculation like this in dashboard.&amp;nbsp; I thought maybe I could create a Feature Layer View with a calculated attribute, but it doesn't seem possible.&amp;nbsp; Is there a way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 14:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-datediff-function-in-operations-dashboard/m-p/384823#M19263</guid>
      <dc:creator>JamieLeitch1</dc:creator>
      <dc:date>2018-06-04T14:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use DateDiff function in Operations Dashboard Indicator?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/use-datediff-function-in-operations-dashboard/m-p/384824#M19264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just discovered ArcGIS Online Assistant.&amp;nbsp; First I created a new hosted feature layer view in AGOL and set a filter on it.&amp;nbsp; Then I logged into AGOL Assistant and selected "View an Item's JSON" in the "I Want to..." menu.&amp;nbsp; I then selected the new feature layer view and scrolled down to the Data window.&amp;nbsp; I clicked the edit icon at the top of this window and found the layer definition property "layerDefinition".&amp;nbsp; Then I edited the JSON to look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"layerDefinition": {&lt;BR /&gt; "definitionExpression": "EditDate &amp;lt;=DATEADD(day,14,convert(date,CreationDate))",&lt;BR /&gt; "defaultVisibility": true&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this seems to have worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 16:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/use-datediff-function-in-operations-dashboard/m-p/384824#M19264</guid>
      <dc:creator>JamieLeitch1</dc:creator>
      <dc:date>2018-06-04T16:04:39Z</dc:date>
    </item>
  </channel>
</rss>

