<?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: Popup Arcade Expression to display a count of different point features that appear in a selected polygon in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1189094#M46786</link>
    <description>&lt;LI-CODE lang="javascript"&gt;var gasworks = FeaturesetByName(...)
var gasworks_in_state = Intersects($feature, gasworks)

var landfills = FeaturesetByName(...)
var landfills_in_state = Intersects($feature, landfills)

var waste = FeaturesetByName(...)
var waste_in_state = Intersects($feature, waste)

var point_counts = [
    `gasworks: ${Count(gasworks_in_state)}`,
    `landfills: ${Count(landfills_in_state)}`,
    `waste: ${Count(waste_in_state)}`,
]
return Concatenate(point_counts, TextFormatting.Newline)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 04 Jul 2022 05:26:59 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-07-04T05:26:59Z</dc:date>
    <item>
      <title>Popup Arcade Expression to display a count of different point features that appear in a selected polygon</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1188962#M46772</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am quite new to Arcade and am stuck trying to create a custom popup in ArcGIS Online.&lt;/P&gt;&lt;P&gt;I have a Local Government Polygon layer for the state and three other point layers:&lt;/P&gt;&lt;P&gt;1. Gasworks&lt;/P&gt;&lt;P&gt;2. Landfill&lt;/P&gt;&lt;P&gt;3. Waste&lt;/P&gt;&lt;P&gt;I am trying to create a popup that will display the total number for each of the&amp;nbsp; 3 sites in that selected Local Government polygon.&lt;/P&gt;&lt;P&gt;I have tried using the Count &amp;amp; Intersect functions but can only get it working for one of the 3.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2022 02:43:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1188962#M46772</guid>
      <dc:creator>TobyStewart2</dc:creator>
      <dc:date>2022-07-02T02:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Arcade Expression to display a count of different point features that appear in a selected polygon</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1189094#M46786</link>
      <description>&lt;LI-CODE lang="javascript"&gt;var gasworks = FeaturesetByName(...)
var gasworks_in_state = Intersects($feature, gasworks)

var landfills = FeaturesetByName(...)
var landfills_in_state = Intersects($feature, landfills)

var waste = FeaturesetByName(...)
var waste_in_state = Intersects($feature, waste)

var point_counts = [
    `gasworks: ${Count(gasworks_in_state)}`,
    `landfills: ${Count(landfills_in_state)}`,
    `waste: ${Count(waste_in_state)}`,
]
return Concatenate(point_counts, TextFormatting.Newline)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Jul 2022 05:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1189094#M46786</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-07-04T05:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Arcade Expression to display a count of different point features that appear in a selected polygon</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1189238#M46794</link>
      <description>&lt;P&gt;That is awesome&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp; works perfectly&lt;/P&gt;&lt;P&gt;Thankyou so very much for that, I really appreciate the help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 02:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-arcade-expression-to-display-a-count-of/m-p/1189238#M46794</guid>
      <dc:creator>TobyStewart2</dc:creator>
      <dc:date>2022-07-05T02:25:20Z</dc:date>
    </item>
  </channel>
</rss>

