<?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>idea Add a Field Calculator to Dashboards in ArcGIS Dashboards Ideas</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-ideas/add-a-field-calculator-to-dashboards/idi-p/1554585</link>
    <description>&lt;P&gt;When creating a chart or indicator or other type of feature in a Dashboard, I would love to see a Field Calculator (or something similar) to expand the kinds of calculations we can do, and eliminate the need to write 60 lines of code for a simple algebraic equation. I want to do more than what "Statistics" offers and I want to incorporate more than one field -- these expanded options need to result in fully interactive features regardless of the number of Selectors I include in the Dashboard.&lt;/P&gt;&lt;P&gt;For example, with the current available options, I can't even create an average calculation from two fields.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Aug 2025 23:55:28 GMT</pubDate>
    <dc:creator>JanetBrewster1</dc:creator>
    <dc:date>2025-08-26T23:55:28Z</dc:date>
    <item>
      <title>Add a Field Calculator to Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/add-a-field-calculator-to-dashboards/idi-p/1554585</link>
      <description>&lt;P&gt;When creating a chart or indicator or other type of feature in a Dashboard, I would love to see a Field Calculator (or something similar) to expand the kinds of calculations we can do, and eliminate the need to write 60 lines of code for a simple algebraic equation. I want to do more than what "Statistics" offers and I want to incorporate more than one field -- these expanded options need to result in fully interactive features regardless of the number of Selectors I include in the Dashboard.&lt;/P&gt;&lt;P&gt;For example, with the current available options, I can't even create an average calculation from two fields.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 23:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/add-a-field-calculator-to-dashboards/idi-p/1554585</guid>
      <dc:creator>JanetBrewster1</dc:creator>
      <dc:date>2025-08-26T23:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Field Calculator to Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-ideas/add-a-field-calculator-to-dashboards/idc-p/1587491#M2712</link>
      <description>&lt;P&gt;I totally agree with this idea.&lt;/P&gt;&lt;P&gt;For example, with a table "CITY" having as fields "CITY_NAME" "POPULATION" "AREA", I would like to be able to display a "DENSITY" indicator which would be the POPULATION/AREA calculation.&lt;/P&gt;&lt;P&gt;I know how to do it by using the reference and going to the lines of code to do $datapoint.SUM_POPULATION/$reference.SUM_AREA. Then, with my category selector set to CITY_NAME, I display the calculated value according to the chosen city.&lt;/P&gt;&lt;P&gt;But for the moment, it is impossible to go further with a 3rd dynamic field in the calculation, which would be dynamic with my category selector.&lt;/P&gt;&lt;P&gt;Let's imagine if I had a NEW_POPULATION field, and I wanted to display a dynamic indicator that would calculate (POPULATION+NEW_POPULATION)/AREA? Or any other calculation mixing several fields.&lt;/P&gt;&lt;P&gt;It would be necessary to be able to create some sort of virtual fields that would do the calculations on the fly, and that could vary depending on the category selector.&lt;/P&gt;&lt;P&gt;In my example, I will create a new virtual field NEW_DENSITY, in which I will do the calculation, and which would then work like any other field.&lt;/P&gt;&lt;P&gt;I tried the thing with a new expression of the type:&lt;/P&gt;&lt;P&gt;var portal = Portal('&lt;A href="https://agglo-plainevallee.maps.arcgis.com" target="_blank"&gt;https://agglo-plainevallee.maps.arcgis.com&lt;/A&gt;');&lt;/P&gt;&lt;P&gt;var fs_indicateur = FeatureSetByPortalItem(&lt;BR /&gt;portal,&lt;BR /&gt;'4d71d1a174a94807946a9413cbb2b1b3',&lt;BR /&gt;0,&lt;BR /&gt;['*'],&lt;BR /&gt;false&lt;BR /&gt;)&lt;BR /&gt;var f_indicateur = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;first&lt;/STRONG&gt;&lt;/FONT&gt;(fs_indicateur)&lt;BR /&gt;var INDICATOR1 = f_indicateur.INDICATOR1&lt;BR /&gt;var INDICATOR2 = f_indicateur.INDICATOR2&lt;BR /&gt;var TOTAL = INDICATOR1+INDICATOR2&lt;/P&gt;&lt;P&gt;But we would have to do without the first(). Or be able to use a filter() that would be linked to the selector, or datapoint, or something else &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 14:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-ideas/add-a-field-calculator-to-dashboards/idc-p/1587491#M2712</guid>
      <dc:creator>VincentTanniere</dc:creator>
      <dc:date>2025-02-20T14:52:21Z</dc:date>
    </item>
  </channel>
</rss>

