<?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 Dashboard element that displays number of days? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406675#M56057</link>
    <description>&lt;P&gt;I have a dashboard that is used to track open cases and would like to configure a list element that will display how long each case has been open, among other things.&lt;/P&gt;&lt;P&gt;The closest solution I have seen is a calculation in the survey. The issue there is that the dates will not update as time passes, so surveys would need to be re-submitted daily to update the calculation. Is there a better way to achieve this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 21:32:44 GMT</pubDate>
    <dc:creator>RHammers</dc:creator>
    <dc:date>2024-04-05T21:32:44Z</dc:date>
    <item>
      <title>Dashboard element that displays number of days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406675#M56057</link>
      <description>&lt;P&gt;I have a dashboard that is used to track open cases and would like to configure a list element that will display how long each case has been open, among other things.&lt;/P&gt;&lt;P&gt;The closest solution I have seen is a calculation in the survey. The issue there is that the dates will not update as time passes, so surveys would need to be re-submitted daily to update the calculation. Is there a better way to achieve this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 21:32:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406675#M56057</guid>
      <dc:creator>RHammers</dc:creator>
      <dc:date>2024-04-05T21:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard element that displays number of days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406686#M56058</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/637688"&gt;@RHammers&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is how I did it&lt;BR /&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/displaying-time-spans-with-arcade-in-dashboards/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/ops-dashboard/real-time/displaying-time-spans-with-arcade-in-dashboards/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RickeyFight_0-1712354483529.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100280iE501F58F9A0C8DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RickeyFight_0-1712354483529.png" alt="RickeyFight_0-1712354483529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 22:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406686#M56058</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2024-04-05T22:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard element that displays number of days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406703#M56059</link>
      <description>&lt;P&gt;Perfect, thank you!&lt;/P&gt;&lt;P&gt;Next question: Is it possible to have the calculated text appear only when a specific question is answered with a specific answer? In my case I do not want the calculated text to appear when the case is closed.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 23:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1406703#M56059</guid>
      <dc:creator>RHammers</dc:creator>
      <dc:date>2024-04-05T23:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard element that displays number of days?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1407504#M56090</link>
      <description>&lt;P&gt;I believe you could just add an if statement.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Check if specific question is answered with a specific answer &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if ($feature['specific_question'] == 'specific_answer') { &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Display calculated text return 'Your calculated text goes here'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;} else { &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// If the condition is not met, return an empty string &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return '';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/conditional-field-display-with-arcade-in-pop-ups/ta-p/920869" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-documents/conditional-field-display-with-arcade-in-pop-ups/ta-p/920869&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcade-expressions/tree/master/dashboard_data" target="_blank"&gt;https://github.com/Esri/arcade-expressions/tree/master/dashboard_data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dashboard-element-that-displays-number-of-days/m-p/1407504#M56090</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2024-04-09T13:44:07Z</dc:date>
    </item>
  </channel>
</rss>

