<?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 data expression: match IDs from two feature sets (join fields, 1:1) in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-data-expression-match-ids-from-two-feature/m-p/1100780#M5128</link>
    <description>&lt;LI-CODE lang="c"&gt;var fs1 = FeatureSetByName(...)
var fs2 = FeatureSetByName(...)

for(var row1 in fs1) {
  var id1 = row1.FFGId
  var filtered_fs2 = Filter(fs2, "FFGId = @id1")
  for(var row2 in filtered_fs2) {
    // do stuff
  }
}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 22 Sep 2021 13:20:39 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-09-22T13:20:39Z</dc:date>
    <item>
      <title>Arcade data expression: match IDs from two feature sets (join fields, 1:1)</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-data-expression-match-ids-from-two-feature/m-p/1100750#M5127</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;this time I have a question that might be a bit tricky: how can you loop through a featureSet (&lt;STRONG&gt;&lt;EM&gt;fs1&lt;/EM&gt;&lt;/STRONG&gt;) and check each time if the current ID is found in another featureSet (&lt;STRONG&gt;&lt;EM&gt;fs2&lt;/EM&gt;&lt;/STRONG&gt;)?&lt;/P&gt;&lt;P&gt;I basically try to achive a&lt;A href="https://pro.arcgis.com/de/pro-app/2.7/tool-reference/data-management/join-field.htm" target="_blank" rel="noopener"&gt; join field&lt;/A&gt; operation from ArcGIS Pro.&lt;/P&gt;&lt;P&gt;To illustrate:&lt;/P&gt;&lt;P&gt;I want to loop through &lt;STRONG&gt;&lt;EM&gt;fs1&lt;/EM&gt; &lt;/STRONG&gt;containing IDs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Merlin_1-1632311449512.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23619i751E2091B63C182A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Merlin_1-1632311449512.png" alt="Merlin_1-1632311449512.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and for each ID in the loop, I would like to see if there is a matching ID in &lt;STRONG&gt;&lt;EM&gt;fs2&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;My initial idea was to have a first for loop to move through the rows of &lt;STRONG&gt;&lt;EM&gt;fs1&lt;/EM&gt; &lt;/STRONG&gt;and then have a second for loop nested within the first, which could pick up the current ID value and loop through &lt;STRONG&gt;&lt;EM&gt;fs2&lt;/EM&gt; &lt;/STRONG&gt;to find a match. But I didnt manage to make nested for loops pointing at different featureSets working.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Merlin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 12:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-data-expression-match-ids-from-two-feature/m-p/1100750#M5127</guid>
      <dc:creator>Merlin</dc:creator>
      <dc:date>2021-09-22T12:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade data expression: match IDs from two feature sets (join fields, 1:1)</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-data-expression-match-ids-from-two-feature/m-p/1100780#M5128</link>
      <description>&lt;LI-CODE lang="c"&gt;var fs1 = FeatureSetByName(...)
var fs2 = FeatureSetByName(...)

for(var row1 in fs1) {
  var id1 = row1.FFGId
  var filtered_fs2 = Filter(fs2, "FFGId = @id1")
  for(var row2 in filtered_fs2) {
    // do stuff
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-data-expression-match-ids-from-two-feature/m-p/1100780#M5128</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-09-22T13:20:39Z</dc:date>
    </item>
  </channel>
</rss>

