<?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: Arcade Expression for calculate a percentage in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286398#M7765</link>
    <description>&lt;P&gt;Your first featureset is grouped by Ano, and so is the second. So the second featureset is essentially going to be the same length as the first, but with a new calculated attribute.&lt;/P&gt;&lt;P&gt;Normally, summing for a percent wouldn't be ideal, but since there should only be one row per group in that ratio featureset, it &lt;EM&gt;ought&lt;/EM&gt; to work. To format as a percentage, though, you'll want to multiply the result by 100.&lt;/P&gt;&lt;P&gt;Just curious, what results are you currently getting from your expression?&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 21:12:15 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-05-05T21:12:15Z</dc:date>
    <item>
      <title>Arcade Expression for calculate a percentage</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286375#M7764</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I need help with an expression in an indicator. I have data population of Colombia and Bogota, this population is for many years (1790 - 2020). I need to calculate:&lt;/P&gt;&lt;P&gt;- first, the difference of population of Colombia between an initial year and a final year (I can did this)&lt;/P&gt;&lt;P&gt;- second, the&amp;nbsp;difference of population of Bogota between an initial year and a final year (I can did this)&lt;/P&gt;&lt;P&gt;- third, the division between the second and first calculation in percentage.&lt;/P&gt;&lt;P&gt;I did this code but it isn´t work correctly. Please can you help me with this calculation?&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 20:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286375#M7764</guid>
      <dc:creator>NaslyTatianaVargas</dc:creator>
      <dc:date>2023-05-05T20:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for calculate a percentage</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286398#M7765</link>
      <description>&lt;P&gt;Your first featureset is grouped by Ano, and so is the second. So the second featureset is essentially going to be the same length as the first, but with a new calculated attribute.&lt;/P&gt;&lt;P&gt;Normally, summing for a percent wouldn't be ideal, but since there should only be one row per group in that ratio featureset, it &lt;EM&gt;ought&lt;/EM&gt; to work. To format as a percentage, though, you'll want to multiply the result by 100.&lt;/P&gt;&lt;P&gt;Just curious, what results are you currently getting from your expression?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 21:12:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286398#M7765</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-05-05T21:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for calculate a percentage</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286489#M7766</link>
      <description>&lt;P&gt;Did it get it right?&lt;/P&gt;&lt;P&gt;Your Arcade expression looks correct, but you need to make sure that you are using the correct field type for your output field. It should be a text field since you are returning "yes" or "no". Also, make sure that you have selected the correct output field in the Calculate Field tool.&lt;/P&gt;&lt;P&gt;Here's an updated version of your Arcade expression:&lt;/P&gt;&lt;P&gt;kotlin&lt;/P&gt;&lt;P&gt;Copy code&lt;/P&gt;&lt;P&gt;var point = Geometry($feature);&lt;/P&gt;&lt;P&gt;var polygon_layer = FeatureSetByName($map, 'flood');&lt;/P&gt;&lt;P&gt;var polygons = Intersects(polygon_layer, point);&lt;/P&gt;&lt;P&gt;if (Count(polygons) &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;return "yes";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else {&lt;/P&gt;&lt;P&gt;return "no";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Make sure that you select the output field as a text field and that you have the correct syntax in your model builder tool. You can use the Calculate Field tool to apply the expression to the point dataset.&lt;/P&gt;&lt;P&gt;If you're still having issues, double-check that the field names match exactly between the point dataset and the polygon dataset, and that the polygon dataset is loaded and visible in your map.&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 21:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-calculate-a-percentage/m-p/1286489#M7766</guid>
      <dc:creator>drimit</dc:creator>
      <dc:date>2023-05-06T21:43:23Z</dc:date>
    </item>
  </channel>
</rss>

