<?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: calculate field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1383230#M78943</link>
    <description>&lt;P&gt;thank you pedro&lt;/P&gt;&lt;P&gt;i will try your solution&lt;/P&gt;&lt;P&gt;hopes that it's work for me&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;itay&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 04:38:27 GMT</pubDate>
    <dc:creator>itayroei</dc:creator>
    <dc:date>2024-02-16T04:38:27Z</dc:date>
    <item>
      <title>calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1382761#M78939</link>
      <description>&lt;P&gt;Hi dear community.&lt;/P&gt;&lt;P&gt;I need to accumalate value of one field by order of other field.&lt;/P&gt;&lt;P&gt;I sucsses to accumlate value but the order detaramine by "OBJECTID"&lt;/P&gt;&lt;P&gt;who can i change that?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;itay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 12:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1382761#M78939</guid>
      <dc:creator>itayroei</dc:creator>
      <dc:date>2024-02-15T12:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1382774#M78940</link>
      <description>&lt;P&gt;Hello Itay! You can use update cursor in python do achieve what you want. In the sql_clause parameter there is one exemple of the epression used with ORDER BY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/arcpy/data-access/updatecursor-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/3.1/arcpy/data-access/updatecursor-class.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;with arcpy.da.UpdateCursor(
        in_features, 
        ['OID@', "ELEVATION"], 
        sql_clause=("TOP 5", "ORDER BY ELEVATION DESC")
) as cur:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 12:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1382774#M78940</guid>
      <dc:creator>PedroCoutinhoMendonça</dc:creator>
      <dc:date>2024-02-15T12:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1382787#M78941</link>
      <description>&lt;P&gt;Dear itayroei,&lt;/P&gt;&lt;P&gt;I hope you are doing well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using ArcGIS Pro, you can do by this way, insert a New Notebook,&lt;/P&gt;&lt;P&gt;and write the python script like below image,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmirSarrafzadehArasi_0-1708004265476.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94885iC23425681FE40653/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmirSarrafzadehArasi_0-1708004265476.png" alt="AmirSarrafzadehArasi_0-1708004265476.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here I read the Airports feature layer as a Pandas DataFrame, you should put your feature layer's name.&lt;/P&gt;&lt;P&gt;Then I have sorted by scale value, which you should put the name of the column which you want to sort the dataframe, and then create a new column which is accumaled values of size column which you should put yours.&lt;/P&gt;&lt;P&gt;If need more info please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it works,&lt;/P&gt;&lt;P&gt;Best Wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 13:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1382787#M78941</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2024-02-15T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1383226#M78942</link>
      <description>&lt;P&gt;thank you Amir&lt;/P&gt;&lt;P&gt;i will try your solution in sundey and let you knew if it's work for me&lt;/P&gt;&lt;P&gt;good weekend&lt;/P&gt;&lt;P&gt;itay&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 04:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1383226#M78942</guid>
      <dc:creator>itayroei</dc:creator>
      <dc:date>2024-02-16T04:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: calculate field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1383230#M78943</link>
      <description>&lt;P&gt;thank you pedro&lt;/P&gt;&lt;P&gt;i will try your solution&lt;/P&gt;&lt;P&gt;hopes that it's work for me&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;itay&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 04:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field/m-p/1383230#M78943</guid>
      <dc:creator>itayroei</dc:creator>
      <dc:date>2024-02-16T04:38:27Z</dc:date>
    </item>
  </channel>
</rss>

