<?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: Hours Spent in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272715#M7544</link>
    <description>&lt;P&gt;I have added start and end times but still can't seem to get the difference to display. Do you have any more suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 19:36:26 GMT</pubDate>
    <dc:creator>aprhyde11</dc:creator>
    <dc:date>2023-03-28T19:36:26Z</dc:date>
    <item>
      <title>Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272060#M7530</link>
      <description>&lt;P&gt;I'm trying to display the total hours spent on a project per day per team. I'm new to arcade so everything I've found hasn't quite worked for what I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only time carrying attribute that I have is the date with time. From my research I've been finding that I need a separate time attribute?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway that I can show this data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need more info please let me know&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 18:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272060#M7530</guid>
      <dc:creator>aprhyde11</dc:creator>
      <dc:date>2023-03-27T18:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272143#M7532</link>
      <description>&lt;P&gt;To show a duration, you need a start and end time, which you'd be able to feed into the &lt;STRONG&gt;DateDiff&lt;/STRONG&gt; function to get the hours.&lt;/P&gt;&lt;PRE&gt;DateDiff($datapoint['end_time'], $datapoint['start_time'], 'hours')&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Mar 2023 20:05:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272143#M7532</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-27T20:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272715#M7544</link>
      <description>&lt;P&gt;I have added start and end times but still can't seem to get the difference to display. Do you have any more suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 19:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272715#M7544</guid>
      <dc:creator>aprhyde11</dc:creator>
      <dc:date>2023-03-28T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272718#M7545</link>
      <description>&lt;P&gt;What does your expression look like? Hard to say why it's not displaying without seeing what's actually happening.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 19:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272718#M7545</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-28T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272745#M7546</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is what it looks like. I'm trying to create an Indicator on a dashboard. The indicator says "Unable to execute Arcade script"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;startDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$datapoint&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;timestart&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;endDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$datapoint&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;timeend&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;age&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;DateDiff&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;endDate&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;startDate&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'hours'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//textColor:'',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//backgroundColor:'',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topText: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topTextColor: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topTextOutlineColor: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topTextMaxSize: 'medium',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;middleText&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;age&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;middleTextColor&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;middleTextOutlineColor&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;middleTextMaxSize&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'large'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomText: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomTextColor: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomTextOutlineColor: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomTextMaxSize: 'medium',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconName:'',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconAlign:'left',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconColor:'',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconOutlineColor:'',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//noValue:false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//attributes: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// attribute1: '',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// attribute2: ''&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272745#M7546</guid>
      <dc:creator>aprhyde11</dc:creator>
      <dc:date>2023-03-28T20:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272751#M7548</link>
      <description>&lt;P&gt;Are your fields actually dates? If so, you don't need to use the &lt;STRONG&gt;Date&lt;/STRONG&gt; function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1680034273035.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66571i3CCE78B147C9D3D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1680034273035.png" alt="jcarlson_0-1680034273035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PS - You may want to use &lt;STRONG&gt;Round &lt;/STRONG&gt;or &lt;STRONG&gt;Text&lt;/STRONG&gt; to format the output nicely.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272751#M7548</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-28T20:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272785#M7550</link>
      <description>&lt;P&gt;Yes the time fields include the date and time. I'm using the start and end functions built in to survey123.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, it still isn't working for me&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help though!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272785#M7550</guid>
      <dc:creator>aprhyde11</dc:creator>
      <dc:date>2023-03-28T20:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272787#M7551</link>
      <description>&lt;P&gt;Can you just confirm that it's a true DateTime field, and not text? I've had surveys store other datatypes as text in the past.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272787#M7551</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-28T20:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hours Spent</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272798#M7552</link>
      <description>&lt;P&gt;It is by date&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aprhyde11_0-1680037024836.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66587i572624BFB525464E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aprhyde11_0-1680037024836.png" alt="aprhyde11_0-1680037024836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/hours-spent/m-p/1272798#M7552</guid>
      <dc:creator>aprhyde11</dc:creator>
      <dc:date>2023-03-28T20:57:33Z</dc:date>
    </item>
  </channel>
</rss>

