<?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>idea Countdown Card for Dashboards, Sites, Hub in ArcGIS Dashboards Ideas</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-ideas/countdown-card-for-dashboards-sites-hub/idi-p/936160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to see an option to add a card (or indicator in Dashboard) that will count down the days until a deadline. The user would specify the deadline and the card/indicator would subtract that date from today's date and return the total number of days left. Once you get to the deadline, the counter stays at zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case for me is that I'd like to have countdowns to A) the deadline to register to vote and B) the date of the next election to go with some of our elections apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2020 17:14:33 GMT</pubDate>
    <dc:creator>AmyRoust</dc:creator>
    <dc:date>2020-03-11T17:14:33Z</dc:date>
    <item>
      <title>Countdown Card for Dashboards, Sites, Hub</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/countdown-card-for-dashboards-sites-hub/idi-p/936160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to see an option to add a card (or indicator in Dashboard) that will count down the days until a deadline. The user would specify the deadline and the card/indicator would subtract that date from today's date and return the total number of days left. Once you get to the deadline, the counter stays at zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case for me is that I'd like to have countdowns to A) the deadline to register to vote and B) the date of the next election to go with some of our elections apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:14:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/countdown-card-for-dashboards-sites-hub/idi-p/936160</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2020-03-11T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Countdown Card for Dashboards, Sites, Hub - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/countdown-card-for-dashboards-sites-hub/idc-p/1121290#M1613</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should be possible using a &lt;A href="https://doc.arcgis.com/en/dashboards/get-started/create-data-expressions.htm" target="_blank" rel="noopener"&gt;data expression&lt;/A&gt; as the data source for an indicator. Something as simple as the following might work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var v = Floor(DateDiff(Date(2021,12,31), Date(), "days"))
var s = {
    "fields":[{
        "alias":"VALUE_","name":"VALUE_","type":"esriFieldTypeDouble"}],
        "spatialReference":"",
        "geometryType":"",
        "features":[{ "attributes":{"VALUE_":v }}]}
return FeatureSet(Text(s))&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;</description>
      <pubDate>Tue, 30 Nov 2021 16:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/countdown-card-for-dashboards-sites-hub/idc-p/1121290#M1613</guid>
      <dc:creator>patrickb</dc:creator>
      <dc:date>2021-11-30T16:20:35Z</dc:date>
    </item>
  </channel>
</rss>

