<?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: Filter table records and related feature class records in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1182400#M46421</link>
    <description>&lt;P&gt;Joining will cause you too lose your attachments, if you have any!!!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 17:22:50 GMT</pubDate>
    <dc:creator>ArmstKP</dc:creator>
    <dc:date>2022-06-13T17:22:50Z</dc:date>
    <item>
      <title>Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168009#M45741</link>
      <description>&lt;P&gt;I am sure someone has encountered this before, but I cannot find any guidance about it.&lt;/P&gt;&lt;P&gt;I have a point feature class with the locations of assets and a linked table for inspections. The table has no location information, only the feature class has locations.&lt;/P&gt;&lt;P&gt;Assets noted to be in poor condition during inspection, I want to see on a map.&lt;/P&gt;&lt;P&gt;It is easy to apply a filter to the inspection table for poor condition, but on the map all assets still show. How do I get the feature class records showing on the map to match the filtered table records?&lt;/P&gt;&lt;P&gt;For example, when I apply a filter to the table, there are 45 records meeting that condition. However, there are 2700 records showing on the map (all asset records). What I want to see on the map are just the 45 assets meeting the table's filter condition.&lt;/P&gt;&lt;P&gt;Ideas or links to posts or documentation addressing this are appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 17:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168009#M45741</guid>
      <dc:creator>SDeGrootNPS</dc:creator>
      <dc:date>2022-04-26T17:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168575#M45771</link>
      <description>&lt;P&gt;I hope the following article helps:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/apply-filters.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/reference/apply-filters.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Essentially, when you are in the web viewer for the feature class, selected the filter button. When the filter windows pops up, input a display expression.&lt;/P&gt;&lt;P&gt;ex. "Condition" + "Is" + "poor condition"&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 22:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168575#M45771</guid>
      <dc:creator>3raan</dc:creator>
      <dc:date>2022-04-27T22:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168593#M45776</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/582287"&gt;@3raan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The article is how to apply a filter to a stand-alone feature class.&lt;/P&gt;&lt;P&gt;I need to apply a filter to a related table, and have the feature class results filtered also.&lt;/P&gt;&lt;P&gt;I cannot apply the filter to the feature class because it does not contain the asset condition fields. They are in the related table.&lt;/P&gt;&lt;P&gt;I can apply the filter to the table, but cannot view the results on a map because the table contains no location data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 23:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168593#M45776</guid>
      <dc:creator>SDeGrootNPS</dc:creator>
      <dc:date>2022-04-27T23:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168672#M45782</link>
      <description>&lt;P&gt;Yes this must be possible! If you figure it out please let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the solution is an Arcade expression which uses the Data function &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyrelationshipname" target="_self"&gt;FeatureSetByRelationshipName&lt;/A&gt; to return a specific feature in the related table. Something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;var id = $feature.XXID;&lt;BR /&gt;var sql = "XXID = " + xxid ;&amp;nbsp; // insert your matching "join" like attribute here for feature and related feature&lt;BR /&gt;var inspectietabel = FeatureSetByName($map,"Inspectie")&lt;BR /&gt;var inspecties = Filter(inspectiontabel, sql);&lt;BR /&gt;for (var inspectie in inspecties)&lt;BR /&gt;{&lt;BR /&gt;var inspconditie = inspectie.condition;&lt;BR /&gt;}&lt;BR /&gt;return inspconditie&lt;/P&gt;&lt;P&gt;And to this Arcade you should add an &lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif" target="_self"&gt;IIF function&lt;/A&gt; to return specific colors or value because unfortunately in an styling expression you can't use FeatureSetByRelationshipName:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iif(inspconditie== "low", "#FFFFF",&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then configure your styling in the map to that attribute created by the expression. If needed set the remaining features to invisable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has a better idea please let me know!&lt;/P&gt;&lt;P&gt;- Zoë&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 09:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1168672#M45782</guid>
      <dc:creator>ZoevdbAT</dc:creator>
      <dc:date>2022-04-28T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1169673#M45837</link>
      <description>&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/visualizing-related-data-with-join-features-in-arcgis-online/" target="_blank"&gt;Visualizing related data with Join Features in ArcGIS Online (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or do this. Join your latest related table features to your Feature Layer and then filter condition.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 11:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1169673#M45837</guid>
      <dc:creator>ZoevdbAT</dc:creator>
      <dc:date>2022-05-02T11:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1169978#M45854</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/465473"&gt;@ZoevdbAT&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;That worked. I joined the feature class with asset locations to the inspection table via the globalid and parentglobalid fields. This created a new feature class with all the fields, and I can create filters on this new feature class or filtered view layers from it, that display on a map only assets meeting a particular inspection condition.&lt;/P&gt;&lt;P&gt;Still not sure if the join will update as I add assets to the inventory-- ideally, it would update.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 00:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1169978#M45854</guid>
      <dc:creator>SDeGrootNPS</dc:creator>
      <dc:date>2022-05-03T00:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1170007#M45857</link>
      <description>&lt;P&gt;You're welcome! The data does update with your new assets, because the join created &lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm" target="_self"&gt;a view of the hosted feature layers&lt;/A&gt; you joined.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1170007#M45857</guid>
      <dc:creator>ZoevdbAT</dc:creator>
      <dc:date>2022-05-03T07:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table records and related feature class records</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1182400#M46421</link>
      <description>&lt;P&gt;Joining will cause you too lose your attachments, if you have any!!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 17:22:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/filter-table-records-and-related-feature-class/m-p/1182400#M46421</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2022-06-13T17:22:50Z</dc:date>
    </item>
  </channel>
</rss>

