<?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: SQL expression to sum cells in the same field in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/sql-expression-to-sum-cells-in-the-same-field/m-p/221460#M7638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Shiko, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a model: - Use a selection tool like &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Make_Feature_Layer/00170000006p000000/"&gt;make feature layer&lt;/A&gt;&lt;SPAN&gt;/ &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Select_Layer_By_Attribute/001700000071000000/"&gt;Select a layer By attribute&lt;/A&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Select/000800000005000000/"&gt;Select&lt;/A&gt;&lt;SPAN&gt; to select the records and then pass the output selection to the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/"&gt;Summary Statistic Tool&lt;/A&gt;&lt;SPAN&gt; : Summing the field&amp;nbsp; you want to for the selected records &amp;gt; then use the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Get_Field_Value/004000000006000000/"&gt;Get Field Value tool&lt;/A&gt;&lt;SPAN&gt; (Only works in ModelBuilder) to get the sum value from the statistic table. You can then use this sum value in the tool you want. You can make the output of the summary statistic tool in_memory so that you don't have to save an extra dbf table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2013 17:33:37 GMT</pubDate>
    <dc:creator>ShitijMehta</dc:creator>
    <dc:date>2013-07-15T17:33:37Z</dc:date>
    <item>
      <title>SQL expression to sum cells in the same field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sql-expression-to-sum-cells-in-the-same-field/m-p/221459#M7637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have any expression or code they can offer that I could incorporate into my Calculate Value Tool on Model Builder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do is add multiple cells of a given attribute field and output that value as a sum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 17:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sql-expression-to-sum-cells-in-the-same-field/m-p/221459#M7637</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-11T17:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL expression to sum cells in the same field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/sql-expression-to-sum-cells-in-the-same-field/m-p/221460#M7638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Shiko, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a model: - Use a selection tool like &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Make_Feature_Layer/00170000006p000000/"&gt;make feature layer&lt;/A&gt;&lt;SPAN&gt;/ &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Select_Layer_By_Attribute/001700000071000000/"&gt;Select a layer By attribute&lt;/A&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Select/000800000005000000/"&gt;Select&lt;/A&gt;&lt;SPAN&gt; to select the records and then pass the output selection to the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/"&gt;Summary Statistic Tool&lt;/A&gt;&lt;SPAN&gt; : Summing the field&amp;nbsp; you want to for the selected records &amp;gt; then use the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Get_Field_Value/004000000006000000/"&gt;Get Field Value tool&lt;/A&gt;&lt;SPAN&gt; (Only works in ModelBuilder) to get the sum value from the statistic table. You can then use this sum value in the tool you want. You can make the output of the summary statistic tool in_memory so that you don't have to save an extra dbf table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 17:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/sql-expression-to-sum-cells-in-the-same-field/m-p/221460#M7638</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-07-15T17:33:37Z</dc:date>
    </item>
  </channel>
</rss>

