<?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: Calculate Fields for Text values in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324737#M72677</link>
    <description>&lt;P&gt;I haven't tested it, but this might work assuming all of your data is in the same geodatabase. Open field calculator and switch the expression type to Arcade &amp;amp; copy/paste the following code. Make sure to change '&lt;EM&gt;Brownfield A&lt;/EM&gt;' and '&lt;EM&gt;Brownfield B'&lt;/EM&gt; to the names of the parcel feature layers in your map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;var BrownA = FeatureSetByName($map,'Brownfield A');
var BrownB = FeatureSetByName($map,'Brownfield B');
var Both = Intersects(BrownA, BrownB);

if (Intersects($feature, BrownA)){
return “A”}
if (Intersects($feature, BrownB)){
return “B”}
if (Intersects($feature, Both)){
return “A and B”}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 13:57:04 GMT</pubDate>
    <dc:creator>SarahRijneke</dc:creator>
    <dc:date>2023-09-01T13:57:04Z</dc:date>
    <item>
      <title>Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324336#M72642</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm curious to know if there is a workaround to using the 'Calculate Fields' tool for text values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I haven't been able to find any documentation confirming that this is possible in ArcGISPro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 13:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324336#M72642</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-08-31T13:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324374#M72645</link>
      <description>&lt;P&gt;What exactly are you trying to do?&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_self"&gt;attribute rules&lt;/A&gt;&amp;nbsp;are handy if you're looking to automatically populate values when features are updated or created.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 14:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324374#M72645</guid>
      <dc:creator>SarahRijneke</dc:creator>
      <dc:date>2023-08-31T14:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324390#M72646</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/663322"&gt;@EuropaxEarth&lt;/a&gt;&amp;nbsp;Refer to:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm" target="_blank" rel="noopener"&gt;Calculate Field using Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/data/tables/fundamentals-of-field-calculations.htm" target="_blank" rel="noopener"&gt;Fundamentals of field calculations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 15:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324390#M72646</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2023-08-31T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324410#M72650</link>
      <description>&lt;P&gt;What's the text you're trying to populate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 15:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324410#M72650</guid>
      <dc:creator>LakeCountyCOGIS</dc:creator>
      <dc:date>2023-08-31T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324492#M72652</link>
      <description>&lt;P&gt;I am trying to discern what parcels do and do not contain brownfields. There are two brownfield datasets that I am referencing.&lt;/P&gt;&lt;P&gt;There can be three outcomes:&lt;/P&gt;&lt;P&gt;* A parcel contains Brownfield Dataset A&lt;/P&gt;&lt;P&gt;*A Parcel contains Brownfield Dataset B&amp;nbsp;&lt;/P&gt;&lt;P&gt;* A parcel contains BOTH Datasets.&lt;/P&gt;&lt;P&gt;For example, I use select by location to see what parcels contain Brownfield A. With that selection, I use calculate fields to say "Brownfields = A".&lt;/P&gt;&lt;P&gt;Then I go in and do select by location to see what parcels contain Brownfield B. Half of the parcels in that selection happen to also contain Brownfield A.&lt;/P&gt;&lt;P&gt;However, when I use calculate fields to have "Brownfields = B", it OVERWRITES, my previous calculations making me unable to display parcels that contain BOTH parcels A and B in my attribute table.&lt;/P&gt;&lt;P&gt;I attempted to use the code below to fill in all the "NULL" values with B, and then replace all the "A" parcels that also contain Brownfield B with "A and B".&lt;/P&gt;&lt;P&gt;if (Brownfields == NULL):&lt;BR /&gt;return ' "B" '&lt;BR /&gt;else:&lt;BR /&gt;return '"A and B"'&lt;/P&gt;&lt;P&gt;However, because my "Brownfields" field is a text data type, this script was unsuccessful.&lt;/P&gt;&lt;P&gt;Essentially, I would like to know how to overwrite previous calculations to display multiple values in within one cell.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 18:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324492#M72652</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-08-31T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324498#M72653</link>
      <description>&lt;P&gt;Posted this above, but I'll recopy it here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to discern what parcels do and do not contain brownfields. There are two brownfield datasets that I am referencing.&lt;/P&gt;&lt;P&gt;There can be three outcomes:&lt;/P&gt;&lt;P&gt;* A parcel contains Brownfield Dataset A&lt;/P&gt;&lt;P&gt;*A Parcel contains Brownfield Dataset B&amp;nbsp;&lt;/P&gt;&lt;P&gt;* A parcel contains BOTH Datasets.&lt;/P&gt;&lt;P&gt;For example, I use select by location to see what parcels contain Brownfield A. With that selection, I use calculate fields to say "Brownfields = A".&lt;/P&gt;&lt;P&gt;Then I go in and do select by location to see what parcels contain Brownfield B. Half of the parcels in that selection happen to also contain Brownfield A.&lt;/P&gt;&lt;P&gt;However, when I use calculate fields to have "Brownfields = B", it OVERWRITES, my previous calculations making me unable to display parcels that contain BOTH parcels A and B in my attribute table.&lt;/P&gt;&lt;P&gt;I attempted to use the code below to fill in all the "NULL" values with B, and then replace all the "A" parcels that also contain Brownfield B with "A and B".&lt;/P&gt;&lt;P&gt;if (Brownfields == NULL):&lt;BR /&gt;return ' "B" '&lt;BR /&gt;else:&lt;BR /&gt;return '"A and B"'&lt;/P&gt;&lt;P&gt;However, because my "Brownfields" field is a text data type, this script was unsuccessful.&lt;/P&gt;&lt;P&gt;Essentially, I would like to know how to overwrite previous calculations to display multiple values in within one cell.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 18:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324498#M72653</guid>
      <dc:creator>EuropaxEarth</dc:creator>
      <dc:date>2023-08-31T18:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Fields for Text values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324737#M72677</link>
      <description>&lt;P&gt;I haven't tested it, but this might work assuming all of your data is in the same geodatabase. Open field calculator and switch the expression type to Arcade &amp;amp; copy/paste the following code. Make sure to change '&lt;EM&gt;Brownfield A&lt;/EM&gt;' and '&lt;EM&gt;Brownfield B'&lt;/EM&gt; to the names of the parcel feature layers in your map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;var BrownA = FeatureSetByName($map,'Brownfield A');
var BrownB = FeatureSetByName($map,'Brownfield B');
var Both = Intersects(BrownA, BrownB);

if (Intersects($feature, BrownA)){
return “A”}
if (Intersects($feature, BrownB)){
return “B”}
if (Intersects($feature, Both)){
return “A and B”}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 13:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-fields-for-text-values/m-p/1324737#M72677</guid>
      <dc:creator>SarahRijneke</dc:creator>
      <dc:date>2023-09-01T13:57:04Z</dc:date>
    </item>
  </channel>
</rss>

