<?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: When will Arcade get more useful, esp with FeatureSet? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223650#M48421</link>
    <description>&lt;P&gt;Answered in the other post but I have some code where I want to make one FeatureSet call with one field then I loop that in a Filter.&amp;nbsp; If Filter does a new call for every one of the 5,000 items in my loop that has to be slower than using in memory.&amp;nbsp; On our VPN all these calls actually make a big speed difference.&amp;nbsp; I do not see why it would have to go back to the server on that.&amp;nbsp; User clicks popup, it does one call, then a bunch of filters, then display.&amp;nbsp; Why more calls to the server?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 23:31:07 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-10-19T23:31:07Z</dc:date>
    <item>
      <title>When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223334#M48402</link>
      <description>&lt;P&gt;Still wish there was a dedicated Arcade board.&amp;nbsp; It is not just AGOL anymore.&amp;nbsp; Anyway.&lt;/P&gt;&lt;P&gt;I have been using Arcade a ton.&amp;nbsp; Lots of useful stuff.&amp;nbsp; Most of my use cases use the FeatureSet functions.&amp;nbsp; Two biggest uses are grabbing info or a summary between parents and children in relationship classes and aggerating stats of Points in Polygons.&amp;nbsp; These work great and I can do some cool stuff.&lt;/P&gt;&lt;P&gt;Unfortunately only being able to use FeatureSet in a popup is really limiting what I can do for the user.&amp;nbsp; While popups are great the times a user will be clicking on each say polygon one by one is pretty slim.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is you cannot really do anything with the expression except look at it.&lt;/P&gt;&lt;P&gt;Lets say I have a calculation that does an avg of Bare Ground across all points in a polygon.&amp;nbsp; I want symbolize the polygons say red to green based on the Avg - nope can't.&amp;nbsp; Ok how about filter the map to show only Avgs under 40% - nope can't.&amp;nbsp; Ok I will open the attribute table and browse or sort - nope can't do that either.&amp;nbsp; Ok how about a label that shows good/bad - nope can't do that.&amp;nbsp; User finally says forget it I will export the data - nope Arcade goes away!&lt;/P&gt;&lt;P&gt;So users come back to me and say this is pretty and all but I cant actually do anything with it.&lt;/P&gt;&lt;P&gt;How are people dealing with this?&amp;nbsp; Again I love Arcade and its powerful but I am having a hard time finding good workflows to actually do anything with them.&lt;/P&gt;&lt;P&gt;I understand that FeatureSet can get slow and that will cause many of these to be painful.&amp;nbsp; I have suggested things like adding a where clause to the FeatureSet calls that would speed them up.&amp;nbsp;&amp;nbsp;I have created a Arc Idea to calc the Arcade values on export.&amp;nbsp; Labels I think would be ok.&amp;nbsp; Filter I really thought would work but no FeatureSet is blocked.&lt;/P&gt;&lt;P&gt;Will any of these be opened up to FeatureSet at some point?&amp;nbsp; Any suggestions or tricks people have used?&lt;/P&gt;&lt;P&gt;Thank for any insight&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223334#M48402</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-19T14:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223377#M48404</link>
      <description>&lt;P&gt;I remember your post about a "where" clause, and discovered something interesting on that point. When you bring in a FeatureSet and then subsequently apply a Filter or Instersects function on it, your browser will actually submit a query to &lt;EM&gt;the original feature service&lt;/EM&gt;, not the in-memory set you've requested.&lt;/P&gt;&lt;P&gt;Say I request a FeatureSet and ask for no fields, no geometry. I can actually still use &lt;STRONG&gt;Filter&lt;/STRONG&gt; against any field in the service, and run a spatial intersection against the layer, because those happen on the server side.&lt;/P&gt;&lt;P&gt;But to your larger question of how to actually &lt;EM&gt;use&lt;/EM&gt; Arcade for more advanced things, I agree that its potentially use for things people want, like symbology, seems teasingly out of reach to those particular Arcade profiles.&lt;/P&gt;&lt;P&gt;For us, by far the most interesting and most useful application of Arcade has been in Dashboards, by means of &lt;STRONG&gt;Data Expressions&lt;/STRONG&gt;. While it still can't translate to the map, we can still do things there that are impossible anywhere else in the off-the-shelf tools available to us.&lt;/P&gt;&lt;P&gt;So maybe the symbology itself can't change based on an ad-hoc field, but we can use a Data Expression to get the Dashboard to treat our calculated fields as though they were "baked in". Here's an example of using a List with a Data Expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1666193190925.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53952iDDF9A5A80F547D51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1666193190925.png" alt="jcarlson_0-1666193190925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Esri's census features have their own "diversity index", but I wanted the Simpson's Index of Diversity, which wasn't in the layer. So I used a Data Expression to create it as a field, and was then able to alter the color on my List using the calculated index.&lt;/P&gt;&lt;P&gt;Not as good as changing the symbology itself, but it's at least &lt;EM&gt;something&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Would be curious to see how others answer this question!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 15:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223377#M48404</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-19T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223553#M48412</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp; I already started on the dashboard to do just that.&amp;nbsp; Having other issues with dashboards though.&amp;nbsp; When building a FeatureSet in the data expression I am trying to use geometry but it says that Geometry is not a valid function for some reason?&amp;nbsp; Like umm its right there dude.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1666209357783.png" style="width: 604px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53996iE71B7CCEAE009419/image-dimensions/604x135?v=v2" width="604" height="135" role="button" title="DougBrowning_0-1666209357783.png" alt="DougBrowning_0-1666209357783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also noticed what you said on Filter.&amp;nbsp; I can even say return geo false then load that into a Intersects and somehow it still works.&amp;nbsp; That means more calls like you said which may explain why its so dang slow.&amp;nbsp; This seems like it would be super inefficient right?&lt;/P&gt;&lt;P&gt;I may try and go by to ByRelationship it just has so many bugs in it.&amp;nbsp; Testing it does not seem much faster.&amp;nbsp; I wonder if it calls them all then filters but that would be silly right.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 21:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223553#M48412</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-19T21:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223598#M48416</link>
      <description>&lt;P&gt;I actually find that those additional calls make for &lt;EM&gt;better&lt;/EM&gt; performance, because I can get a FeatureSet with, say, 2 fields and no geometry, but then subset that using functions that access &lt;EM&gt;any number &lt;/EM&gt;of fields &lt;EM&gt;and &lt;/EM&gt;geometry. It puts the work on the server, as opposed to some in-memory FeatureSet in my browser. The FeatureSet(s) going to and from the server are comparatively tiny when it's only a couple of fields, as opposed to requesting polylines or polygons[o&lt;/P&gt;&lt;P&gt;Making multiple small requests = lower net I/O = faster execution.&lt;/P&gt;&lt;P&gt;I'd be curious to see the expression you're attempting. I don't seem to run into the same issues.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1666215760219.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54005i413F92E21805121F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1666215760219.png" alt="jcarlson_0-1666215760219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 21:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223598#M48416</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-19T21:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223600#M48417</link>
      <description>&lt;P&gt;I've been feeling this way for a bit, too.&lt;/P&gt;&lt;P&gt;Even just in a normal Pro session, there are tons of things that , like Josh says, are teasingly out of reach.&lt;/P&gt;&lt;P&gt;Particularly, as you say, using FeatureSet outside of popups. We have all these cool things that&amp;nbsp;&lt;EM&gt;could&lt;/EM&gt; work (I wanted to symbolize by whether or not some points were within 3 miles of some turbines), but most profiles are completely agnostic to things other than the feature class itself.&lt;/P&gt;&lt;P&gt;Arcade is great at getting things dynamically. I'd love to be able to use it for quick and dirty visualization without having to make a new layer or a new feature class, but right now it just can't do what I want. I love it for field calculations and pop-ups, but visualization needs a lot more work.&lt;/P&gt;&lt;P&gt;Another use case I noticed last week was this post: &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/symbolize-top-10-attributes-by-count-dynamically/m-p/1222590" target="_blank"&gt;Re: Symbolize top 10 attributes by count dynamical... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Why don't we have a $view global that's not just for view scale? Let us adjust symbology by what's in the view, a la DRA for raster datasets.&lt;/P&gt;&lt;P&gt;I second the Arcade Board idea; I'm never sure where to ask questions for it.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 21:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223600#M48417</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2022-10-19T21:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223650#M48421</link>
      <description>&lt;P&gt;Answered in the other post but I have some code where I want to make one FeatureSet call with one field then I loop that in a Filter.&amp;nbsp; If Filter does a new call for every one of the 5,000 items in my loop that has to be slower than using in memory.&amp;nbsp; On our VPN all these calls actually make a big speed difference.&amp;nbsp; I do not see why it would have to go back to the server on that.&amp;nbsp; User clicks popup, it does one call, then a bunch of filters, then display.&amp;nbsp; Why more calls to the server?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 23:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223650#M48421</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-19T23:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223704#M48425</link>
      <description>&lt;P&gt;In regards to an Arcade community, please lend your support to this idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/community-ideas/arcade-community/idc-p/1182298" target="_blank"&gt;Arcade Community - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In regards to making featuresets available in the labeling and visualization profile: This would be great, but it's probably not coming any time soon. &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-arcade-globals-for-visualization-symbology/idc-p/1146789/highlight/true#M18775" target="_blank" rel="noopener"&gt;Post from February 2022&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;There are no plans to extend the labeling or visualization profiles to include FeatureSet functionality for performance reasons. Label and visualization expressions are executed on a per-feature basis and a feature set query executed per-feature would slow down draw performance.&lt;/P&gt;&lt;P&gt;For this use-case the recommendation is to use a calculate attribute rule where the script is executed at data creation or update time rather than once per draw loop. FeatureSetByName can be used to perform FeatureSet lookups with any other dataset in the same workspace. Cross-database cases are not currently possible but an idea to support that for future workflows could be submitted for conversation.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 20 Oct 2022 07:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223704#M48425</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-20T07:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223771#M48435</link>
      <description>&lt;P&gt;It's interesting, because it doesn't &lt;EM&gt;always&lt;/EM&gt; behave this way. Only when the expression can "see" the original link to the service. If you alter a FeatureSet substantially, additional calls will be made against the in-memory object. And it's only done with certain functions, too. One of the back-end things that I would like to understand better, because knowing when this behavior is or is not exhibited could help users write better expressions. Or better yet, give us some means of controlling this behavior!&lt;/P&gt;&lt;P&gt;If I had to guess, this is probably a case where the developer assumes a particular "standard" use case, builds the tool to facilitate that, and unintentionally makes other uses less efficient. In expressions I write, I &lt;EM&gt;want&lt;/EM&gt; this behavior, but it's very clear that the way your expression evaluates, it is a net loss. And as you state, it doesn't &lt;EM&gt;have &lt;/EM&gt;to go back to the server. There might be workarounds, though...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223771#M48435</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-20T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223784#M48436</link>
      <description>&lt;P&gt;Is the expression in that other post what you're referring to here? You could do something like call &lt;STRONG&gt;Distinct&lt;/STRONG&gt; on your FeatureSet. This returns a new FeatureSet, and importantly, once which has its "link" to the original source broken, thus foisting the work to your browser's memory.&lt;/P&gt;&lt;P&gt;You can even sneak your SQL filter into &lt;STRONG&gt;Distinct&lt;/STRONG&gt;. This expression (in theory, can't test against the real data), would return a FeatureSet that consists of only the PointIDs of rows matching the filter, along with a single row that has an empty string.&lt;/P&gt;&lt;P&gt;Also, backtick strings in Arcade will respect line breaks, making a long expression much easier to format and keep straight.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var sql = `
CASE
    WHEN
        ResponseType = 'Log an issue'
        AND (Resolved IS NULL OR Resolved = 'No')
    THEN 'PointID'
    ELSE ''
END
`

var unresolved_ids = Distinct(
    input_featureset,
    {
        name: 'unresolved_id',
        expression: sql
    }
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option would be to use &lt;STRONG&gt;Distinct&lt;/STRONG&gt; on your input FeatureSet(s) &lt;EM&gt;right away&lt;/EM&gt;. You can use the &lt;STRONG&gt;Schema&lt;/STRONG&gt; function to pull out the fields and ensure that all are present in your output.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = some_featureset_object

var flds = Schema(fs)['fields']

var fieldnames = []

for (var f in flds){
    Push(fieldnames, flds[f]['Name'])
}

return Distinct(fs, fieldnames)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will return an object &lt;EM&gt;identical&lt;/EM&gt; to the input FeatureSet, but with that link severed. See if it improves things for you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223784#M48436</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-20T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223786#M48437</link>
      <description>&lt;P&gt;And of course, it's always posting here that I realize half a dozen places where &lt;EM&gt;I &lt;/EM&gt;can benefit from this idea! I have a few dashboards where I simply accepted long execution times as a necessary evil, but I'm going to be making some changes today. Many thanks for bringing this up!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223786#M48437</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-20T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223803#M48440</link>
      <description>&lt;P&gt;Thanks I was planning to post to dig into this today.&amp;nbsp; I am trying to find the Esri person that always posts but I cant find it.&amp;nbsp; I wish they could chime in here.&lt;/P&gt;&lt;P&gt;What you are saying may explain why the first code my coworker tried would run forever and never return.&lt;/P&gt;&lt;P&gt;Basically call FeatureSet once and put it in a var - this is were most languages would then use that var in memory.&amp;nbsp; Then my loop is just a Filter on that in memory set.&amp;nbsp; But as you point out it looks like each one of these 5,000 will be another call.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tbl2All = FeatureSetByPortalItem(Portal(p),'713e3aaef9674e3493a64347d333b618',10,['PointID','ResponseType','Resolved'],false)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var f in tbl) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// one call to FeatureSet then loop the filter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var sql = "PointID = '"+ f.PointID + "' And ResponseType = 'Log an issue' And (Resolved IS NULL Or Resolved = 'No')";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var tbl2 = Filter(tbl2All,sql);&amp;nbsp; //so right here it is going back out to the web??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (count(tbl) &amp;gt; 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var v_CountUnresolved = "Yes"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var v_CountUnresolved = "No"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This probably explains why when I loaded the values into text instead that was faster since the text string to check is now really in memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The other way I wanted to do is to simply load the FeatureSet into an &lt;STRONG&gt;Array&lt;/STRONG&gt;.&amp;nbsp; I am only grabbing one field so it would just be a simple array like [1,2,3].&amp;nbsp; Then I can loop on that array and it will all be in memory.&amp;nbsp; But I have found no way to do that.&amp;nbsp; Array() just makes a array of static values - which is super weird really like what is the use case for that.&amp;nbsp; I thought Array(FeatureSet) would work but it is not like that.&amp;nbsp; That is how other languages&amp;nbsp;would work.&amp;nbsp; Know a way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Like you said it is hard to tell what IS the most efficient&amp;nbsp;way now.&amp;nbsp; No doc on this that I can find.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In Python I got burned on FeatureSet also actually.&amp;nbsp; I tried it after following the help.&amp;nbsp; Turns out its the same deal.&amp;nbsp; Load a URL into a FeatureSet - this is surely in memory - then loop it.&amp;nbsp; Nope its not in memory and merely&amp;nbsp;a pointer.&amp;nbsp; This meant I was making thousands of calls to the service.&amp;nbsp; On slow connections it was brutal.&lt;BR /&gt;plotcharF = arcpy.FeatureSet()&lt;BR /&gt;plotcharF.load(plotcharURL)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I went back to my old way of FeatureClassToFeatureClass(URL, "in_memory", name) and the script went from hours to 3 minutes!&amp;nbsp; Again no mention of this in the help that I&amp;nbsp;saw.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am with you I would love to know the details so I can write good code.&amp;nbsp; Having filter go back out to the service is weird for sure.&amp;nbsp; Like why bother asked me for a field list in FeatureSet then?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for working though this&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223803#M48440</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-20T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223804#M48441</link>
      <description>&lt;P&gt;Belay that. Link remains, somehow. I tried getting the distinct and subsequently filtering, and the request to the server included the grouping &lt;EM&gt;and &lt;/EM&gt;the filtering in &lt;EM&gt;the same request&lt;/EM&gt;. Very curious...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223804#M48441</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-20T14:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223818#M48442</link>
      <description>&lt;P&gt;We have the dashboard now with a data expression as you posted.&amp;nbsp; It turns rows red if a matching error report is found in the Error form layer.&amp;nbsp; And now with the Geometry(f) part right it will even change on zoom which is sweet.&amp;nbsp; thanks on that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_2-1666277185395.png" style="width: 547px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54040iBEFC43E15FEEB5A2/image-dimensions/547x125?v=v2" width="547" height="125" role="button" title="DougBrowning_2-1666277185395.png" alt="DougBrowning_2-1666277185395.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to get it to use the same symbology as the map in the list?&amp;nbsp; It works when its a layer but when it goes to data expression it changes all the symbols to the same symbol.&amp;nbsp; I think it may be the no value symbol from the map.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1666277047881.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54038i7A828CC9844130DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1666277047881.png" alt="DougBrowning_0-1666277047881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the properties all I see is symbol on/off.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_1-1666277087813.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54039i8A0A864A2CBB09D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_1-1666277087813.png" alt="DougBrowning_1-1666277087813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to say hey use the symbology from over on the map?&amp;nbsp; It is that or we have to recreate it in Ops using a big if statement I guess.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223818#M48442</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-20T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223819#M48443</link>
      <description>&lt;P&gt;I believe you're looking for &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/188597"&gt;@MikeMillerGIS&lt;/a&gt; ? I think he's involved in Arcade on the Esri side of things.&lt;/P&gt;&lt;P&gt;Okay, I initially thought that converting your stuff through text wasn't a great idea, but I'm seeing the use for it. Trouble is, there's still not a nice and easy way to &lt;EM&gt;do &lt;/EM&gt;that without using a loop to build the string first.&lt;/P&gt;&lt;P&gt;What Arcade could &lt;EM&gt;really use &lt;/EM&gt;is a "to_array" or "to_dict" function that we could call on a FeatureSet or something...&lt;/P&gt;&lt;P&gt;Attempting even more convoluted methods of severing that tie, and I am not certain I can actually do it. I may simply be thinking of FeatureSets I've created "from scratch" for testing purposes, or intermediate FeatureSets created by &lt;STRONG&gt;FeatureSet(Text(some_dict))&lt;/STRONG&gt;, but then used in a subsequent function, rather than being the output itself. Arcade seems to cobble together the various &lt;STRONG&gt;FeatureSetBy...&lt;/STRONG&gt; functions into whatever consolidated queries it can.&lt;/P&gt;&lt;P&gt;That does help understand that a subsequent filter is &lt;EM&gt;literally the same &lt;/EM&gt;as supplying "out fields" to the initial FeatureSet function, as the browser only sends &lt;EM&gt;one &lt;/EM&gt;query, with the filter applied then.&lt;/P&gt;&lt;P&gt;A bit opaque for my taste, but it's the only game in town.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223819#M48443</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-20T14:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223825#M48445</link>
      <description>&lt;P&gt;Yeah, I don't know if the FeatureSet comes in w/ default symbology. According to the REST docs, a &lt;STRONG&gt;Feature&lt;/STRONG&gt; can come in with a &lt;STRONG&gt;Symbol&lt;/STRONG&gt; property, but I don't recall ever having seen that in Arcade...&lt;/P&gt;&lt;P&gt;A workaround I've used is to use SVG elements and pipe in attributes to them. Like here, I have a list of features and I wanted graduated symbols in the List.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1666277635162.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54042i1F3538F4AECA4823/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1666277635162.png" alt="jcarlson_0-1666277635162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to use Advanced Formatting to scale the attribute to a pixel size that made sense, but I was satisfied with the result. Though a bit tedious, you could find SVG versions of the symbols you like, then pipe those into an expression with &lt;STRONG&gt;When(class_a, "svg string", class_b, "other svg string"...)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223825#M48445</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-20T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223864#M48451</link>
      <description>&lt;P&gt;Most of my stuff is using FeatureSet and intersects with a Polygon and points.&amp;nbsp; Hard to tell if&amp;nbsp;attribute rules can handle that yet.&amp;nbsp; Also these go across databases for sure.&amp;nbsp; Some I use Esri layers even.&amp;nbsp; Like summarizes our data points inside HUCs from Living Atlas. So still wont work it sounds like from your text.&amp;nbsp; But for now I am AGOL which has no&amp;nbsp;attribute rules yet anyway.&lt;/P&gt;&lt;P&gt;Bummer.&amp;nbsp; I still think if they could speed up FeatureSet it could work.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1223864#M48451</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-20T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: When will Arcade get more useful, esp with FeatureSet?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1225743#M48585</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Have you noticed if using&amp;nbsp;FeatureSetByRelationshipName is faster?&amp;nbsp; In theory you would think it does the query by key server side and just returns the one record I need.&lt;/P&gt;&lt;P&gt;I was skipping&amp;nbsp;FeatureSetByRelationshipName since it had bugs but seems to work on my data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should be faster than this right?&lt;/P&gt;&lt;P&gt;var sql = "PlotKey = '" + $feature.PlotKey + "'";&lt;BR /&gt;var tbl = Filter(FeatureSetByName($map,"Soil Stability"), sql);&lt;/P&gt;&lt;P&gt;I tested but have not seem much difference yet.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 16:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-will-arcade-get-more-useful-esp-with/m-p/1225743#M48585</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-10-26T16:44:48Z</dc:date>
    </item>
  </channel>
</rss>

