<?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 Arcade Expression for Dashboard List from multiple feature services in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-dashboard-list-from-multiple/m-p/1089346#M4956</link>
    <description>&lt;P&gt;I am working on a Catch Basin Monitoring dashboard.&amp;nbsp; The dashboard needs to summarise activities by watershed.&amp;nbsp; I would like to create ONE simple list that has the following summaries:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Watershed name,&lt;/LI&gt;&lt;LI&gt;Total Catch Basins,&lt;/LI&gt;&lt;LI&gt;Catch basins Inspected&lt;/LI&gt;&lt;LI&gt;Total Manhours&lt;/LI&gt;&lt;LI&gt;Total Sediment removed&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Using the "groupby" command as described in &lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/introducing-data-expressions-in-arcgis-dashboards/" target="_self"&gt;this article&lt;/A&gt;, I can generate a COUNT by watershed.&amp;nbsp; The trouble is, each of my metrics to report (items 2 - 5 from list above) are within seperate FS's, with Watershed being common.&amp;nbsp; Can I nest, or use multiple returns?&lt;/P&gt;&lt;P&gt;Any hints on how to achieve this are greatly appreciated.&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 17:15:11 GMT</pubDate>
    <dc:creator>BretWhiteley</dc:creator>
    <dc:date>2021-08-16T17:15:11Z</dc:date>
    <item>
      <title>Arcade Expression for Dashboard List from multiple feature services</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-dashboard-list-from-multiple/m-p/1089346#M4956</link>
      <description>&lt;P&gt;I am working on a Catch Basin Monitoring dashboard.&amp;nbsp; The dashboard needs to summarise activities by watershed.&amp;nbsp; I would like to create ONE simple list that has the following summaries:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Watershed name,&lt;/LI&gt;&lt;LI&gt;Total Catch Basins,&lt;/LI&gt;&lt;LI&gt;Catch basins Inspected&lt;/LI&gt;&lt;LI&gt;Total Manhours&lt;/LI&gt;&lt;LI&gt;Total Sediment removed&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Using the "groupby" command as described in &lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/introducing-data-expressions-in-arcgis-dashboards/" target="_self"&gt;this article&lt;/A&gt;, I can generate a COUNT by watershed.&amp;nbsp; The trouble is, each of my metrics to report (items 2 - 5 from list above) are within seperate FS's, with Watershed being common.&amp;nbsp; Can I nest, or use multiple returns?&lt;/P&gt;&lt;P&gt;Any hints on how to achieve this are greatly appreciated.&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-dashboard-list-from-multiple/m-p/1089346#M4956</guid>
      <dc:creator>BretWhiteley</dc:creator>
      <dc:date>2021-08-16T17:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Dashboard List from multiple feature services</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-dashboard-list-from-multiple/m-p/1089350#M4957</link>
      <description>&lt;P&gt;One thought I am having, can I generate a separate list of each metric by watershed and then join them together to create one RETURN.&amp;nbsp; The code below seems to work in the experssion test, but not full excecuted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var Cleanings = FeatureSetByPortalItem(Portal('&lt;A href="https://arcgis.com/" target="_blank"&gt;https://arcgis.com/&lt;/A&gt;'),&lt;BR /&gt;'###',&lt;BR /&gt;0, ['Watershed','FeatureID','Cleaned','CleaningDate'], false);&lt;BR /&gt;var Total = FeatureSetByPortalItem(Portal('&lt;A href="https://arcgis.com/" target="_blank"&gt;https://arcgis.com/&lt;/A&gt;'),&lt;BR /&gt;'###',&lt;BR /&gt;0, ['Watershed','FeatureID'], false);&lt;/P&gt;&lt;P&gt;Var Clean = GroupBy(Cleanings, ['Watershed'], [&lt;BR /&gt;{name: 'Cleaned', expression: 'Cleaned', statistic: 'COUNT' }]);&lt;BR /&gt;&lt;BR /&gt;Var Total = GroupBy(Total, ['Watershed'], [&lt;BR /&gt;{name: 'total_sites', expression: 'FeatureID', statistic: 'COUNT' }&lt;BR /&gt;]);&lt;BR /&gt;&lt;BR /&gt;Return {Clean, Total}&lt;/P&gt;&lt;P&gt;Can I join by attribute Clean and Total and return just the joined table?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-dashboard-list-from-multiple/m-p/1089350#M4957</guid>
      <dc:creator>BretWhiteley</dc:creator>
      <dc:date>2021-08-16T17:32:08Z</dc:date>
    </item>
  </channel>
</rss>

