<?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: Field Calculation Between Related Tables - ArcGIS Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526452#M87400</link>
    <description>&lt;P&gt;It shouldn't be too hard. In Arcade, you can access related tables with the function &lt;STRONG&gt;FeatureSetByRelationshipName&lt;/STRONG&gt;, and the result of that function is already filtered to the related records. You'd need some way to filter the result to a single feature. Here's me just grabbing the first record in a related table.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var can2 = FeatureSetByRelationshipName($feature, 'Relate1', ['the_field_you_want'], false)

// get the first feature
var can2_feat = First(can2)

// return value
return can2_feat['the_field_you_want']&lt;/LI-CODE&gt;&lt;P&gt;Just be sure you get the relationship name right in that first line, and ask for whatever fields you need to do your work. Assuming it's just pulling a single value, though, it's a pretty straightforward operation.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 14:44:27 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-08-23T14:44:27Z</dc:date>
    <item>
      <title>Field Calculation Between Related Tables - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526340#M87385</link>
      <description>&lt;P&gt;I am attempting to pull some information from a related table into my main feature class by using the field calculator but so far everything I have found online has failed.&lt;BR /&gt;&lt;BR /&gt;I believe this should be fairly simple with some Arcade expression.&lt;BR /&gt;&lt;BR /&gt;I have two feature classes with tree canopy information, with a relate between the two tables (ie. Relate1). Canopy1 is the main feature class I want to work with but I have some specific canopy calculations in feature class Canopy2 that I would like to populate in one of the Canopy1 fields.&lt;BR /&gt;&lt;BR /&gt;Would anyone be able help with the Arcade expression for this please?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 09:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526340#M87385</guid>
      <dc:creator>SuzyFer</dc:creator>
      <dc:date>2024-08-23T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation Between Related Tables - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526450#M87399</link>
      <description>&lt;P&gt;A few screenshots of the data structure might be useful to you to understand where you want the field calculation to go and what you have in mind for your solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Have you tried to run a full join instead of running it as a Related table and then calculate?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You might also want to try adding an attribute rule to run the calculation to Canopy 1 fields when there is a modification or update.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 14:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526450#M87399</guid>
      <dc:creator>Roger_Schulz</dc:creator>
      <dc:date>2024-08-23T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation Between Related Tables - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526452#M87400</link>
      <description>&lt;P&gt;It shouldn't be too hard. In Arcade, you can access related tables with the function &lt;STRONG&gt;FeatureSetByRelationshipName&lt;/STRONG&gt;, and the result of that function is already filtered to the related records. You'd need some way to filter the result to a single feature. Here's me just grabbing the first record in a related table.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var can2 = FeatureSetByRelationshipName($feature, 'Relate1', ['the_field_you_want'], false)

// get the first feature
var can2_feat = First(can2)

// return value
return can2_feat['the_field_you_want']&lt;/LI-CODE&gt;&lt;P&gt;Just be sure you get the relationship name right in that first line, and ask for whatever fields you need to do your work. Assuming it's just pulling a single value, though, it's a pretty straightforward operation.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 14:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526452#M87400</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-08-23T14:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculation Between Related Tables - ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526547#M87408</link>
      <description>&lt;OL&gt;&lt;LI&gt;What kind of geodatabase? For example, Oracle 18c 10.7.1 enterprise geodatabase.&lt;/LI&gt;&lt;LI&gt;What version of ArcGIS Pro?&lt;/LI&gt;&lt;LI&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-questions/1-m-join-to-pull-feature-with-specific-attribute/m-p/1524759/highlight/true#M45333" target="_self"&gt;1:M Join to Pull feature with Specific Attribute information&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Can you confirm that a relate is indeed needed due to the underlying data structure being one-to-many? Or is the data structure one-to-one?&lt;/LI&gt;&lt;LI&gt;Have you ruled out using a one-to-many join?&lt;/LI&gt;&lt;LI&gt;What does the data look like?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 23 Aug 2024 16:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/field-calculation-between-related-tables-arcgis/m-p/1526547#M87408</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-08-23T16:30:12Z</dc:date>
    </item>
  </channel>
</rss>

