<?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 Calculate related table column based on related feature field using arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-related-table-column-based-on-related/m-p/1082201#M43666</link>
    <description>&lt;P&gt;I have a bridge feature class with a related table of reports&lt;/P&gt;&lt;P&gt;After everything was built, got request to add a custom ID field to the related table that directly reference a field in my feature class.&lt;/P&gt;&lt;P&gt;Based on research, I need to grab the related GlobalID, filter my feature set, and return the needed field to calculate my custom ID.&lt;/P&gt;&lt;P&gt;For example, report 41 needs to have a field calculated to pull the bridge number associated with that report and.&lt;/P&gt;&lt;P&gt;This is what I was thinking but now I'm not sure I'm doing it right.&amp;nbsp; Wish Pro had an Arcade Playground for testing functions in field calculator.&lt;/P&gt;&lt;P&gt;I am calculating the field in the related table.&lt;/P&gt;&lt;P&gt;I think I'm not accessing the filter result correctly...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// reference feature service
var fl = FeatureSetByName($datastore, 'PM_Bridges')

// read the associated bridge GlobalID stored in my related table
var bridgeGUID = $feature.REL_GLOBALID

//sql for filtering feature service 
var sql = "GlobalID = '" + bridgeGUID + "'"

// go to bridge feature service &amp;amp; filter by GUID
var bridge = Filter(fl, sql);

//returns string - both fields already string type
var name = bridge.BRIDGENUM + " " + bridge.BMS

return name;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 15:05:46 GMT</pubDate>
    <dc:creator>Kara_Shindle</dc:creator>
    <dc:date>2021-07-23T15:05:46Z</dc:date>
    <item>
      <title>Calculate related table column based on related feature field using arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-related-table-column-based-on-related/m-p/1082201#M43666</link>
      <description>&lt;P&gt;I have a bridge feature class with a related table of reports&lt;/P&gt;&lt;P&gt;After everything was built, got request to add a custom ID field to the related table that directly reference a field in my feature class.&lt;/P&gt;&lt;P&gt;Based on research, I need to grab the related GlobalID, filter my feature set, and return the needed field to calculate my custom ID.&lt;/P&gt;&lt;P&gt;For example, report 41 needs to have a field calculated to pull the bridge number associated with that report and.&lt;/P&gt;&lt;P&gt;This is what I was thinking but now I'm not sure I'm doing it right.&amp;nbsp; Wish Pro had an Arcade Playground for testing functions in field calculator.&lt;/P&gt;&lt;P&gt;I am calculating the field in the related table.&lt;/P&gt;&lt;P&gt;I think I'm not accessing the filter result correctly...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// reference feature service
var fl = FeatureSetByName($datastore, 'PM_Bridges')

// read the associated bridge GlobalID stored in my related table
var bridgeGUID = $feature.REL_GLOBALID

//sql for filtering feature service 
var sql = "GlobalID = '" + bridgeGUID + "'"

// go to bridge feature service &amp;amp; filter by GUID
var bridge = Filter(fl, sql);

//returns string - both fields already string type
var name = bridge.BRIDGENUM + " " + bridge.BMS

return name;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 15:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-related-table-column-based-on-related/m-p/1082201#M43666</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2021-07-23T15:05:46Z</dc:date>
    </item>
  </channel>
</rss>

