<?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 Calculate field model in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160884#M7283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Im pretty new on using arcmap and specially using the modelViewer.&lt;/P&gt;&lt;P&gt;Im trying to do the following:&lt;/P&gt;&lt;P&gt;I have 2 layers, point and polygon, that i used a spatial join to know how many points are intersected in the polygon layer.&lt;/P&gt;&lt;P&gt;After i generate the result in a join_count field, i want to add in the percentaje field, the % related to the total of points that i have.&lt;/P&gt;&lt;P&gt;My model is the following.: campamentos is my polygon layer and sed_006 is my point layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/368043_pastedImage_1.png" style="width: 620px; height: 558px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing the model, the percentaje field is still 0.&lt;/P&gt;&lt;P&gt;My formula for calculate field is ([Join_Count]*100)/Filas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help provided! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 13:31:12 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2017-08-22T13:31:12Z</dc:date>
    <item>
      <title>Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160884#M7283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Im pretty new on using arcmap and specially using the modelViewer.&lt;/P&gt;&lt;P&gt;Im trying to do the following:&lt;/P&gt;&lt;P&gt;I have 2 layers, point and polygon, that i used a spatial join to know how many points are intersected in the polygon layer.&lt;/P&gt;&lt;P&gt;After i generate the result in a join_count field, i want to add in the percentaje field, the % related to the total of points that i have.&lt;/P&gt;&lt;P&gt;My model is the following.: campamentos is my polygon layer and sed_006 is my point layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/368043_pastedImage_1.png" style="width: 620px; height: 558px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing the model, the percentaje field is still 0.&lt;/P&gt;&lt;P&gt;My formula for calculate field is ([Join_Count]*100)/Filas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help provided! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160884#M7283</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2017-08-22T13:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160885#M7284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just a guess but that looks like vb syntax.&amp;nbsp; and assuming it is a field, you might want to try python syntax&amp;nbsp;&lt;/P&gt;&lt;P&gt;!join_count!*100.0/filas&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if it isn't the python vs vb thing, then you should always promote one of the variables to ensure that the math is done as floating point math that is why I put 100.0 instead of 100, since the latter is an integer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160885#M7284</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-22T13:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160886#M7285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean this? (It didnt work tho)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/368044_pastedImage_1.png" style="width: 620px; height: 736px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160886#M7285</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2017-08-22T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160887#M7286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is Join_count a field to begin with? and it looks like you are using one of those iterators. &amp;nbsp;&lt;/P&gt;&lt;P&gt;At this stage, it would be best to run through that calculation manually in arctoolbox, then get the correct syntax from the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/using-the-results-window.htm"&gt;Results window &lt;/A&gt;and use it.&amp;nbsp; Alternately, if you typed that expression in... don't, use the little calculator to the right of the expression line and select what you can from there typing as little as possible&lt;/P&gt;&lt;P&gt;Finally... doing it manually will at least confirm whether there was any count other than 0 which may be a valid observation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160887#M7286</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-22T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160888#M7287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont understand what i need to do.&lt;/P&gt;&lt;P&gt;But I have the following:&lt;/P&gt;&lt;P&gt;In the camp_spatialJoin as a result (the green circle) i have this info:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/368111_pastedImage_1.png" style="width: 620px; height: 11px;" /&gt;&lt;/P&gt;&lt;P&gt;Where i have the field percentaje in 0 and for that row, the join_count in 1.&lt;/P&gt;&lt;P&gt;So how to set up the model to have my final result with the percentaje of join:count*100 / qtty of points in sed_006 resource.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160888#M7287</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2017-08-22T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160889#M7288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following workflow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="368114" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/368114_pastedImage_1.png" style="width: 620px; height: 135px;" /&gt;&lt;/P&gt;&lt;P&gt;Summary Statistics: SUM&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="368115" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/368115_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get Field Value:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="368117" class="jive-image image-4" src="https://community.esri.com/legacyfs/online/368117_pastedImage_6.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression in my Calculate Field Tool looks like this&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;([Join_Count]*100)/%Value%&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;IMG __jive_id="368116" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/368116_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/368118_pastedImage_1.png" style="width: 620px; height: 235px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160889#M7288</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-08-22T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160890#M7289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see &lt;STRONG&gt;Get Field Value&lt;/STRONG&gt;&amp;nbsp;tool here.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/368119_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160890#M7289</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-08-22T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field model</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160891#M7290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im going to try that &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&amp;nbsp;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-field-model/m-p/160891#M7290</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2017-08-22T15:18:14Z</dc:date>
    </item>
  </channel>
</rss>

