<?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 to Summarize Features in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117678#M43004</link>
    <description>&lt;P&gt;Within ArcGIS Online, I want to symbolize a feature layer by a count of the district values within a single field but I'm not sure how to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For background I have a zip code polygon layer that has a table join (one to many) with a feature layer connected to a survey123. One of the prompts in the survey collects the zip code. As the survey responses come in the polygon layer is populated with the prompts. I want to symbolize that polygon layer by the frequency of each zip code occurrence in the attribute table.&lt;/P&gt;&lt;P&gt;For example, if 19123 appears 5 times in the table, the zip code polygon layer would reflect the value 5 and not the zip code itself.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 14:30:56 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-11-17T14:30:56Z</dc:date>
    <item>
      <title>Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117678#M43004</link>
      <description>&lt;P&gt;Within ArcGIS Online, I want to symbolize a feature layer by a count of the district values within a single field but I'm not sure how to do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For background I have a zip code polygon layer that has a table join (one to many) with a feature layer connected to a survey123. One of the prompts in the survey collects the zip code. As the survey responses come in the polygon layer is populated with the prompts. I want to symbolize that polygon layer by the frequency of each zip code occurrence in the attribute table.&lt;/P&gt;&lt;P&gt;For example, if 19123 appears 5 times in the table, the zip code polygon layer would reflect the value 5 and not the zip code itself.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117678#M43004</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-11-17T14:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117680#M43005</link>
      <description>&lt;P&gt;Symbology with Arcade can not use FeatureSets.&amp;nbsp; So, if the data is not in the records being symbolized, this wont work.&lt;/P&gt;&lt;P&gt;If you were to use a field calcuate to populate a field in the feature, you could symbolize by that field.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117680#M43005</guid>
      <dc:creator>JasonGlidewell</dc:creator>
      <dc:date>2021-11-17T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117681#M43006</link>
      <description>&lt;P&gt;Re-reading what I wrote, I think I must clarify.&lt;/P&gt;&lt;P&gt;If I want to symbolize a polygon using an Arcade expression, the data used must be in the specific record being symbolize.&amp;nbsp; I cannot use a featureset to count the number of values within the table.&lt;/P&gt;&lt;P&gt;To do this, my only option would be to field calculate the count into the record, and then symbolize by the data in the record.&amp;nbsp; Notebooks does offer the option of running FCs on hosted layer in AGOL, and can even be set to run it on a regular basis, such as every 5 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:37:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117681#M43006</guid>
      <dc:creator>JasonGlidewell</dc:creator>
      <dc:date>2021-11-17T14:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117682#M43007</link>
      <description>&lt;P&gt;Thanks, Jason!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you elaborate on how that would work? Would I calculate a field in the zip code layer? I added in an extra field that I could use because I had a feeling I would need it. What would the field that I use to make the calculation look like this?&lt;/P&gt;&lt;P&gt;Zip Code&amp;nbsp; &amp;nbsp; &amp;nbsp; Extra Field&lt;/P&gt;&lt;P&gt;19123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;19123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;19123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;19162&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;19152&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;19152&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117682#M43007</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-11-17T14:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117690#M43008</link>
      <description>&lt;P&gt;Yes, you'll need to populate the "Extra Field" with the count.&lt;/P&gt;&lt;P&gt;The easiest way to do this I can think of, would be to use a filter.&amp;nbsp; It's a pretty simply command in Arcade, and can be used in a field calculate.&amp;nbsp; However, again, limitaitons apply.&amp;nbsp; Using Arcade in a field calcualte requires editor tracking to be disabled.&lt;/P&gt;&lt;P&gt;Something like this...&lt;/P&gt;&lt;P&gt;var zip = $feature.Zip_Code&lt;BR /&gt;var sql1 = "Zip_Code == @zip"&lt;BR /&gt;var filter1 = Filter($layer,sql1)&lt;BR /&gt;var count1 = Count(filter1)&lt;/P&gt;&lt;P&gt;return count1&lt;/P&gt;&lt;P&gt;I am normally a "question asker" not a "question answerer" so please forgive me if my answers are unclear.&amp;nbsp; Tyring to give back to this community after receiving so much help over the years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117690#M43008</guid>
      <dc:creator>JasonGlidewell</dc:creator>
      <dc:date>2021-11-17T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117696#M43009</link>
      <description>&lt;P&gt;I'll try this out! Your answers are very clear &amp;amp; no need to apologize for trying to help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:52:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117696#M43009</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-11-17T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Summarize Features</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117699#M43010</link>
      <description>&lt;P&gt;Something similar using the diameter field.&amp;nbsp; If you Zip code field is a double, this should work after adjusting the variables.&amp;nbsp; Otherwise, if a string, you need to replace the "=" with "LIKE".&lt;/P&gt;&lt;P&gt;var dia = IIF(IsEmpty($feature.Diameter), 0, $feature.Diameter)&lt;BR /&gt;var sql1 = "Diameter = @dia"&lt;BR /&gt;var filter1 = Filter($layer,sql1)&lt;BR /&gt;var count1 = Count(filter1)&lt;/P&gt;&lt;P&gt;return count1&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-summarize-features/m-p/1117699#M43010</guid>
      <dc:creator>JasonGlidewell</dc:creator>
      <dc:date>2021-11-17T14:56:50Z</dc:date>
    </item>
  </channel>
</rss>

