<?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: simple table calculation in modelbuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848346#M3429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming the model builder element labeled "this value is a constant" means that it is a one-row table, with a value you are dividing rows by in the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, you could use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//004000000006000000"&gt;Get Field Value tool&lt;/A&gt; to pull the value out from your one-row table into a model variable. Then you can use Calculate Field, including that model element in the expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14302715783865658 jive_text_macro" data-renderedposition="134_8_912_16" jivemacro_uid="_14302715783865658"&gt;&lt;P&gt;!VFIELD! / %field value%&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where "field value" is the model element output from the Get Field Value tool.&lt;/P&gt;&lt;P&gt;By the way, I always use the PYTHON parser (instead of the default VB parser) because it is the only one that works in both foreground and background processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 01:41:56 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2015-04-29T01:41:56Z</dc:date>
    <item>
      <title>simple table calculation in modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848343#M3426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions of a tool that permits you to divide one table by another table in model builder.&amp;nbsp; We can use field calculator to perform calculations of values within one table but not if in different tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 21:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848343#M3426</guid>
      <dc:creator>warrenroberts</dc:creator>
      <dc:date>2015-04-28T21:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: simple table calculation in modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848344#M3427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps joining the tables first to create a new table should first be done. Then field calculator is possible again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 01:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848344#M3427</guid>
      <dc:creator>MikeCusi</dc:creator>
      <dc:date>2015-04-29T01:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: simple table calculation in modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848345#M3428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Warren, simply join the two tables together using the Join Field tool (&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000065000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000065000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use a common Id field as the join_field, and you can join whichever of your fields from the second table you need to use in calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 01:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848345#M3428</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-04-29T01:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: simple table calculation in modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848346#M3429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming the model builder element labeled "this value is a constant" means that it is a one-row table, with a value you are dividing rows by in the other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's the case, you could use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//004000000006000000"&gt;Get Field Value tool&lt;/A&gt; to pull the value out from your one-row table into a model variable. Then you can use Calculate Field, including that model element in the expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14302715783865658 jive_text_macro" data-renderedposition="134_8_912_16" jivemacro_uid="_14302715783865658"&gt;&lt;P&gt;!VFIELD! / %field value%&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where "field value" is the model element output from the Get Field Value tool.&lt;/P&gt;&lt;P&gt;By the way, I always use the PYTHON parser (instead of the default VB parser) because it is the only one that works in both foreground and background processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 01:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/simple-table-calculation-in-modelbuilder/m-p/848346#M3429</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-04-29T01:41:56Z</dc:date>
    </item>
  </channel>
</rss>

