<?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: How do I perform arithmetic calculations between data in two different tables? in Admin Tools for ArcGIS Online &amp; Portal Questions</title>
    <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/how-do-i-perform-arithmetic-calculations-between/m-p/856201#M304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very common &lt;A href="https://community.esri.com/space/2087"&gt;Geoprocessing&lt;/A&gt;&amp;nbsp;problem. Since you are using the Calculate Field tool, it sounds like you are using ArcMap or &lt;A href="https://community.esri.com/space/2151"&gt;ArcGIS Pro&lt;/A&gt;‌.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add a field (beds per county, float) to table 1&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Use Add Join tool (or right click layer, joins and relates, Add Join) to join table 1 and table 2 by a common field (usually county FIPS code). After you set up the join, the fields in both tables will appear in the table view.&lt;/P&gt;&lt;P&gt;3. Calculate Field on your new field with an expression (using the language you are most familiar with, Python works with both ArcMap and Pro): example, &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;100.0 * !tbl1.BEDS! / !tbl2.POPULATION!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2020 00:08:53 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2020-06-01T00:08:53Z</dc:date>
    <item>
      <title>How do I perform arithmetic calculations between data in two different tables?</title>
      <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/how-do-i-perform-arithmetic-calculations-between/m-p/856200#M303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, I have one table with the total number of hospital beds in a given county. I have another separate table with the populations in those same counties. Therefore, in order to calculate "hospital beds per person" in a given county, I would have to take the hospital bed number in the first table and divide that by the population number in the second table. I have tried playing around with the "calculate field" tool but I am not familiar with Python or Arcade, and it seems like it can only perform calculations within a single table. Please advise and thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2020 00:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/how-do-i-perform-arithmetic-calculations-between/m-p/856200#M303</guid>
      <dc:creator>vinhhuyle</dc:creator>
      <dc:date>2020-05-31T00:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I perform arithmetic calculations between data in two different tables?</title>
      <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/how-do-i-perform-arithmetic-calculations-between/m-p/856201#M304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very common &lt;A href="https://community.esri.com/space/2087"&gt;Geoprocessing&lt;/A&gt;&amp;nbsp;problem. Since you are using the Calculate Field tool, it sounds like you are using ArcMap or &lt;A href="https://community.esri.com/space/2151"&gt;ArcGIS Pro&lt;/A&gt;‌.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add a field (beds per county, float) to table 1&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Use Add Join tool (or right click layer, joins and relates, Add Join) to join table 1 and table 2 by a common field (usually county FIPS code). After you set up the join, the fields in both tables will appear in the table view.&lt;/P&gt;&lt;P&gt;3. Calculate Field on your new field with an expression (using the language you are most familiar with, Python works with both ArcMap and Pro): example, &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;100.0 * !tbl1.BEDS! / !tbl2.POPULATION!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 00:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/how-do-i-perform-arithmetic-calculations-between/m-p/856201#M304</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2020-06-01T00:08:53Z</dc:date>
    </item>
  </channel>
</rss>

