<?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: Field Calculating range of values ? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622022#M35181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a complete example for what you want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also: &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field-examples.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field-examples.htm"&gt;Calculate Field examples—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 18:31:47 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2016-07-06T18:31:47Z</dc:date>
    <item>
      <title>Using Field Calculator to summarize range of values?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622021#M35180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to ArcGIS and GIS operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use field calculator to summarize a range of values having different FID_XXXX. For example&lt;/P&gt;&lt;P&gt;I have a geo table with the following FID_XXXX with their corresponding GRIDCODE.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="210855" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/210855_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to populate a new field ( for e.g AREA_OVERLAP) I added after the FID columns :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="210856" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/210856_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I was wondering if someone can help me with a .cal expression to summarize or other operations for a batch of values tied to a certain row. I am somewhat familiar with Python but not accustomed to the ArcGIS environment.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="210866" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/210866_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622021#M35180</guid>
      <dc:creator>KaustavChaudhury1</dc:creator>
      <dc:date>2016-07-06T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculating range of values ?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622022#M35181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a complete example for what you want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also: &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field-examples.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field-examples.htm"&gt;Calculate Field examples—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622022#M35181</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-07-06T18:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculating range of values ?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622023#M35182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. I apologize if I have not been clear in my explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first screenshot showing the field GRIDCODE has a number of corresponding FID_XXXX. Each GRIDCODE has a row of data which holds FID_XXXX values which I need to summarize. for example in case of GRIDCODE=0 ,the new field TOTAL_AREA_OVERLAP will hold sum of all (FID_5194+FID_5203+.....) &lt;/P&gt;&lt;P&gt;Since there are a large number of such columns and there is no fixed range for the FID_XXXX property I need to run a loop for summing the values in all columns starting with string FID_% for each row and populate that value inside TOTAL_AREA_OVERLAP. Summing is one of the operation I need. Similar to this I may also need mean, median etc as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622023#M35182</guid>
      <dc:creator>KaustavChaudhury1</dc:creator>
      <dc:date>2016-07-06T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator to summarize range of values?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622024#M35183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you have a table which is largely empty and there is no pattern to what is in there? or are you just trying to sum the values for the fields for each row.&amp;nbsp; Now if the field structure had the same pattern, you could greatly simplify the calculation if there were a fixed number of field that you wanted to sum... and those pesky nulls.&amp;nbsp; Also... this is a 2 second excel solution, why don't you just shove it over there, then join the result back joining to the object id field, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 18:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622024#M35183</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-06T18:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator to summarize range of values?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622025#M35184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I am trying to find the sum of values for the fields for each row but only the fields that start with "FID_".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About using excel , it only allows 256 columns. Still I exported it to csv and fulfilled my task. But this is just one of the tables out of several and it was getting cumbersome to manage for each tables. Hence I was hoping for a more efficient way to do it in-vivo Arcgis. I saw a number of posts about python expressions that can batch process such operations and was hoping if that is possible for my task as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 19:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622025#M35184</guid>
      <dc:creator>KaustavChaudhury1</dc:creator>
      <dc:date>2016-07-06T19:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculating range of values ?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622026#M35185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how you do this in the field calculator, but here's how you can do it in Python:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; fc = 'points' # change to your feature layer name
... fid_fields = [i.name for i in arcpy.ListFields(fc,'FID_*')] # list of "FID_" fields
... all_fields = ['TOTAL_AREA_OVERLAP'] + fid_fields # add overlap field to beginning of list
... with arcpy.da.UpdateCursor(fc,all_fields) as cursor: # update cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor: # loop through cursor
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total = 0 # start at 0
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(len(fid_fields)): # for each FID field
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total += row[i+1] # accumulate
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = total # store total in first position
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row) # write row&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622026#M35185</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-12T02:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator to summarize range of values?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622027#M35186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Darren. &lt;/P&gt;&lt;P&gt;This looks promising.&lt;/P&gt;&lt;P&gt;I am away from my system at this moment. I'll give it a shot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 20:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-to-summarize-range-of/m-p/622027#M35186</guid>
      <dc:creator>KaustavChaudhury1</dc:creator>
      <dc:date>2016-07-06T20:33:47Z</dc:date>
    </item>
  </channel>
</rss>

