<?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 Use arcade expression to calculate fields in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-arcade-expression-to-calculate-fields/m-p/881924#M5161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate some fields using arcade expression. Is there a way to do that with the FeatureLayer.calculate(...) method. I'm looking for something equivalent to this SQL expression using arcade:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_FeatureLayer.calculate("1=1",{"field": "ratio_entrees_seances", "sqlExpression" : "CAST(FieldA AS FLOAT) / CAST(FieldB AS FLOAT)"})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find any help in ArcGIS Python API documentation nor in ArcGIS Rest API documentation &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaëtan Lavenu&lt;/P&gt;&lt;P&gt;Esri France&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2018 16:46:13 GMT</pubDate>
    <dc:creator>GaëtanLAVENU</dc:creator>
    <dc:date>2018-10-26T16:46:13Z</dc:date>
    <item>
      <title>Use arcade expression to calculate fields</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-arcade-expression-to-calculate-fields/m-p/881924#M5161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate some fields using arcade expression. Is there a way to do that with the FeatureLayer.calculate(...) method. I'm looking for something equivalent to this SQL expression using arcade:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_FeatureLayer.calculate("1=1",{"field": "ratio_entrees_seances", "sqlExpression" : "CAST(FieldA AS FLOAT) / CAST(FieldB AS FLOAT)"})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find any help in ArcGIS Python API documentation nor in ArcGIS Rest API documentation &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaëtan Lavenu&lt;/P&gt;&lt;P&gt;Esri France&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 16:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/use-arcade-expression-to-calculate-fields/m-p/881924#M5161</guid>
      <dc:creator>GaëtanLAVENU</dc:creator>
      <dc:date>2018-10-26T16:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use arcade expression to calculate fields</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-arcade-expression-to-calculate-fields/m-p/881925#M5162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Décidément je te manque ? ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : Gaëtan LAVENU &lt;/P&gt;&lt;P&gt;Envoyé : vendredi 26 octobre 2018 18:47&lt;/P&gt;&lt;P&gt;À : Kacenelen Yann&lt;/P&gt;&lt;P&gt;Objet :  - Use arcade expression to calculate fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use arcade expression to calculate fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Gaëtan LAVENU&amp;lt;https://community.esri.com/people/glavenuesrifrance-fr-esridist?et=watches.email.thread&amp;gt; in ArcGIS API for Python - View the full discussion&amp;lt;https://community.esri.com/message/809009-use-arcade-expression-to-calculate-fields?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/use-arcade-expression-to-calculate-fields/m-p/881925#M5162</guid>
      <dc:creator>YannKACENELEN</dc:creator>
      <dc:date>2018-10-29T14:32:06Z</dc:date>
    </item>
  </channel>
</rss>

