<?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: Calculations in one field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387921#M79430</link>
    <description>&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;If you're running this in 'Calculate Field', this will be the format. In Code Block,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import math

def calculate_D(AREA_RECORD, Shape_Area):
    A = abs(AREA_RECORD - Shape_Area)
    B = 0.8 * math.sqrt(AREA_RECORD) + 0.002 * AREA_RECORD
    C = abs(B - A)
    D = B - C
    return D&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;calculate_D(!AREA_RECORD!, !Shape_Area!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeeteshSingh07_0-1709111992957.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96104i0D194EA4439E113B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeeteshSingh07_0-1709111992957.png" alt="GeeteshSingh07_0-1709111992957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 09:19:51 GMT</pubDate>
    <dc:creator>GeeteshSingh07</dc:creator>
    <dc:date>2024-02-28T09:19:51Z</dc:date>
    <item>
      <title>Calculations in one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387894#M79428</link>
      <description>&lt;P&gt;Hello all&lt;BR /&gt;I have four calculations, the final result of which is the field value.&lt;BR /&gt;Can you help me write it in Python 3?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;A = abs(!AREA_RECORD! - !Shape_Area!)
B = 0.8*math.sqrt(!AREA_RECORD!)+0.002* !AREA_RECORD!
C= abs(B- A)
D = B - C
print D&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387894#M79428</guid>
      <dc:creator>HusamJubeh</dc:creator>
      <dc:date>2024-02-28T08:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387921#M79430</link>
      <description>&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;If you're running this in 'Calculate Field', this will be the format. In Code Block,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import math

def calculate_D(AREA_RECORD, Shape_Area):
    A = abs(AREA_RECORD - Shape_Area)
    B = 0.8 * math.sqrt(AREA_RECORD) + 0.002 * AREA_RECORD
    C = abs(B - A)
    D = B - C
    return D&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;calculate_D(!AREA_RECORD!, !Shape_Area!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeeteshSingh07_0-1709111992957.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96104i0D194EA4439E113B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeeteshSingh07_0-1709111992957.png" alt="GeeteshSingh07_0-1709111992957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field-examples.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 09:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387921#M79430</guid>
      <dc:creator>GeeteshSingh07</dc:creator>
      <dc:date>2024-02-28T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations in one field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387934#M79433</link>
      <description>&lt;P&gt;Thank&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 10:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculations-in-one-field/m-p/1387934#M79433</guid>
      <dc:creator>HusamJubeh</dc:creator>
      <dc:date>2024-02-28T10:02:27Z</dc:date>
    </item>
  </channel>
</rss>

