<?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: Arcade in Dashboards in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069789#M40728</link>
    <description>&lt;P&gt;great resource - thanks! now I know where to add&lt;/P&gt;&lt;P&gt;I confused on how to reference the layer?&lt;/P&gt;&lt;P&gt;I get this error when using the expression above (which I took from a popup&lt;/P&gt;&lt;P&gt;&lt;SPAN class="text-red"&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN&gt;Runtime Error: Identifier Not Found. $layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 12:55:06 GMT</pubDate>
    <dc:creator>aroininen</dc:creator>
    <dc:date>2021-06-18T12:55:06Z</dc:date>
    <item>
      <title>Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069461#M40708</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;is it possible to display an arcade expression like the example below in one of the ArcOnline Dashboard items?&amp;nbsp; Indicator , Items , Details or Rich Text?&lt;/P&gt;&lt;P&gt;basically I would like to display summarized data on a dashboard - charts and graphs work but not ideal - just want to display the values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var sql = "ServiceAre_1 IN (2,5,6,8,9)";&lt;BR /&gt;var fs = Filter ($layer,sql);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var CanC = sum(fs, "F_CanConne_1");&lt;BR /&gt;var Reserved = sum(fs, "F_Reserved_1");&lt;BR /&gt;var DeswPro = sum(fs, "F_Des_Wpro_1");&lt;BR /&gt;var Total = Canc + Reserved + DeswPro;&lt;/P&gt;&lt;P&gt;var result = "CanConnect: " + CanC;&lt;BR /&gt;result += TextFormatting.NewLine + "Reserved: " + Reserved;&lt;BR /&gt;result += TextFormatting.NewLine + "DeswPro: " + DeswPro;&lt;BR /&gt;result += TextFormatting.NewLine + "Total: " + Total;&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CanConnect: 317 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reserved: 27 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DeswPro: 0 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total: 344&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;end result something like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aroininen_0-1623945938521.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16223i435E6ACB173844E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aroininen_0-1623945938521.png" alt="aroininen_0-1623945938521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 16:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069461#M40708</guid>
      <dc:creator>aroininen</dc:creator>
      <dc:date>2021-06-17T16:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069526#M40712</link>
      <description>&lt;P&gt;Check these out&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/introducing-data-expressions-in-arcgis-dashboards/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/introducing-data-expressions-in-arcgis-dashboards/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069526#M40712</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-17T18:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069789#M40728</link>
      <description>&lt;P&gt;great resource - thanks! now I know where to add&lt;/P&gt;&lt;P&gt;I confused on how to reference the layer?&lt;/P&gt;&lt;P&gt;I get this error when using the expression above (which I took from a popup&lt;/P&gt;&lt;P&gt;&lt;SPAN class="text-red"&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN&gt;Runtime Error: Identifier Not Found. $layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 12:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069789#M40728</guid>
      <dc:creator>aroininen</dc:creator>
      <dc:date>2021-06-18T12:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069808#M40731</link>
      <description>&lt;P&gt;The great thing about the data expression is that it doesn't need to reference a Webmap etc. You first reference content by itemid as a featureSet.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), 'ItemIDd10b9e8dbd7f4cccbd0a938a06c586e9' , 0, ['field or list of fields'], false)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069808#M40731</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-18T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069863#M40740</link>
      <description>&lt;P&gt;thankyou so much for your help - still cannot get it to work,&lt;/P&gt;&lt;P&gt;for some reason when I click the Globals tab it is empty is that normal?&lt;/P&gt;&lt;P&gt;where do I get the Item ID?&lt;/P&gt;&lt;P&gt;Does the 'feature by portal item' command replace my&amp;nbsp;&lt;STRONG&gt;var fs = Filter ($layer,sql); ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there a particular item I should be using this expression that summarizes data? List, Indicator, Details?&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 15:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069863#M40740</guid>
      <dc:creator>aroininen</dc:creator>
      <dc:date>2021-06-18T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069885#M40743</link>
      <description>&lt;P&gt;I guess you'd use the indicator, but to be honest it's something I would trial and error myself.&lt;/P&gt;&lt;P&gt;You should also understand that the data expression is not simple without prior knowledge of how it works, I'd recommend fully reading the documentation and code samples on how to construct the return featureSet (the data expression only returns a featureSet, not a value or string etc.)&lt;/P&gt;&lt;P&gt;The simplest way I can think of getting your itemID is to co to your content page, click on your hosted feature layer and you will see the itemID in the url.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fsbpi = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), 'ItemIDd10b9e8dbd7f4cccbd0a938a06c586e9' , 0, ['field or list of fields'], false)
var sql = "ServiceAre_1 IN (2,5,6,8,9)";
var fs = Filter (fsbpi,sql);

 
var CanC = sum(fs, "F_CanConne_1");
var Reserved = sum(fs, "F_Reserved_1");
var DeswPro = sum(fs, "F_Des_Wpro_1");
var Total = Canc + Reserved + DeswPro;

//then construct a new featureSet from CanC, Reserved....&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069885#M40743</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-18T16:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069965#M40750</link>
      <description>&lt;P&gt;thanks for your help - I will continue reading on returning feature sets - I thought because I had a expression that worked in a pop up it would work in a dashboard too!&lt;/P&gt;&lt;P&gt;I simplified it but still no results&lt;/P&gt;&lt;P&gt;var fs = FeatureSetByPortalItem(Portal('&lt;A href="https://www.arcgis.com/" target="_blank"&gt;https://www.arcgis.com/&lt;/A&gt;'), 'f7cb22d41a1d41c69030ad4d6365ceba' , 0, ['F_CanConne_1','F_Reserved_1','F_Des_Wpro_1','ServiceAre_1'], false)&lt;/P&gt;&lt;P&gt;return GroupBy(fs, ['ServiceAre_1'],&lt;BR /&gt;[{name: 'total units', expression: 'F_CanConne_1', statistic: 'SUM' },&lt;BR /&gt;{name: 'total units', expression: 'F_Reserved_1', statistic: 'SUM' },&lt;BR /&gt;{name: 'Total units', expression: 'F_Des_Wpro_1', statistic: 'SUM' }]);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="text-red"&gt;Execution Error:&lt;/SPAN&gt;&lt;SPAN&gt;Feature layer must be created with either a url or a source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks again I will keep on reading&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&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>Fri, 18 Jun 2021 19:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069965#M40750</guid>
      <dc:creator>aroininen</dc:creator>
      <dc:date>2021-06-18T19:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069997#M40758</link>
      <description>&lt;P&gt;I'd comment everything out except the first var fs = line, and then build from there.&amp;nbsp; It looks like a featureSet can't be created from that itemID right at the start, are you entirely sure that's the itemID of the hosted feature layer?&amp;nbsp; Is it public for me to test?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 20:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1069997#M40758</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-18T20:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1070471#M40797</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;ya when I comment everything out it appears to find the dataset....&lt;/P&gt;&lt;P&gt;is there a way that I can direct send you the link - it not 100% public!&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 15:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1070471#M40797</guid>
      <dc:creator>aroininen</dc:creator>
      <dc:date>2021-06-21T15:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1146620#M44513</link>
      <description>&lt;P&gt;Hello, I created an expression using Arcade to intersect 2 layers and then show the value in a pop-up. Is there a way to use the same expression in a dashboard? I want to show the value in a list along with other values from the table. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 18:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-in-dashboards/m-p/1146620#M44513</guid>
      <dc:creator>ClaudiaGIS</dc:creator>
      <dc:date>2022-02-22T18:45:46Z</dc:date>
    </item>
  </channel>
</rss>

