<?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 Indicator box in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/dashboard-indicator-box/m-p/1365422#M1316</link>
    <description>&lt;P&gt;The problem that you're running into is the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filter" target="_self"&gt;Filter&lt;/A&gt; function requires a FeatureSet, but you're providing it with a value ($datapoint.count_OBJECTID_12_13). That's the same issue you're having with the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#average" target="_self"&gt;Average&lt;/A&gt; function.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 16:39:41 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2024-01-02T16:39:41Z</dc:date>
    <item>
      <title>Dashboard Indicator box</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/dashboard-indicator-box/m-p/1364855#M1315</link>
      <description>&lt;P&gt;I'm trying to create a box showing the days remaining for our inspections. The variables are not working, specifically the filter and average.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;TotalPoles&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;count_OBJECTID_12_13&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;TotalHours&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$reference&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sum_hours_worked&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;PolesInspected&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TotalPoles&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'inspection_type is NOT NULL'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;PolesRemaining&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TotalPoles&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'inspection_type is NULL'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;PolesPerHour&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;PolesInspected&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;TotalHours&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;AverageHours&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Average&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TotalHours&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'hours_worked'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;DaysLeft&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;PolesRemaining&lt;/SPAN&gt;&lt;SPAN&gt;/(&lt;/SPAN&gt;&lt;SPAN&gt;PolesPerHour&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;AverageHours&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 20:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/dashboard-indicator-box/m-p/1364855#M1315</guid>
      <dc:creator>AmandaHutsel2</dc:creator>
      <dc:date>2023-12-28T20:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Indicator box</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/dashboard-indicator-box/m-p/1365422#M1316</link>
      <description>&lt;P&gt;The problem that you're running into is the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#filter" target="_self"&gt;Filter&lt;/A&gt; function requires a FeatureSet, but you're providing it with a value ($datapoint.count_OBJECTID_12_13). That's the same issue you're having with the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#average" target="_self"&gt;Average&lt;/A&gt; function.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 16:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/dashboard-indicator-box/m-p/1365422#M1316</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-01-02T16:39:41Z</dc:date>
    </item>
  </channel>
</rss>

