<?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: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585173#M10752</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/377399"&gt;@DanielReynolds4&lt;/a&gt;&amp;nbsp;Thanks. Unfortunately I have filters that the indicator needs to work with and a 2nd data expression that would be summary data would make that difficult I think.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 21:53:18 GMT</pubDate>
    <dc:creator>LJackson29</dc:creator>
    <dc:date>2025-02-13T21:53:18Z</dc:date>
    <item>
      <title>ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1584601#M10746</link>
      <description>&lt;P&gt;Hello - I am working in ArcGIS Online Dashboards. My dashboard already has a data expression to create some necessary fields with data at the feature level. I am trying to create an attribute expression for an indicator that sums data across 4 fields (A, B, C, and D below) selecting different features for each field depending upon a status field. Below is what I came up with, but it is not working. Any suggestions? TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var SUM_A=IIf($datapoint.status='Submitted', sum($datapoint.A),0)
var SUM_B=IIf($datapoint.status='Scored', sum($datapoint.B),0)
var SUM_C=IIf($datapoint.status='construction', sum($datapoint.C),0)
var SUM_D=IIf($datapoint.status='Complete', sum($datapoint.D),0)
var SUM_ABCD = SUM_A+SUM_B+SUM_C+SUM_D


return {
  //textColor:'',
  //backgroundColor:'',
  topText: 'Total Cost',
  //topTextColor: '',
  //topTextOutlineColor: '',
  //topTextMaxSize: 'medium',
  middleText: SUM_ABCD,
  middleTextColor: '',
  middleTextOutlineColor: '',
  middleTextMaxSize: 'large',
  //bottomText: '',
  //bottomTextColor: '',
  //bottomTextOutlineColor: '',
  //bottomTextMaxSize: 'medium',
  //iconName:'',
  //iconAlign:'left',
  //iconColor:'',
  //iconOutlineColor:'',
  //noValue:false,
  //attributes: {
    // attribute1: '',
    // attribute2: ''
  // }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 19:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1584601#M10746</guid>
      <dc:creator>LJackson29</dc:creator>
      <dc:date>2025-02-12T19:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1584710#M10747</link>
      <description>&lt;P&gt;On the Data tab in the indicator configuration, is the Value type set to Statistic or Feature? I think if it is set to Statistic, the indicator only has access to the field selected for the statistic calculation. I think if you change it to Feature, it might work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielReynolds4_0-1739402673832.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125207i75084115CC79451B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielReynolds4_0-1739402673832.png" alt="DanielReynolds4_0-1739402673832.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 23:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1584710#M10747</guid>
      <dc:creator>DanielReynolds4</dc:creator>
      <dc:date>2025-02-12T23:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585055#M10748</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/377399"&gt;@DanielReynolds4&lt;/a&gt;&amp;nbsp;It is set to statistic. This is more complicated than summing one field. I need to sum data across 4 different fields with each having a different subset of records. See the attribute expression able for what I am trying to do. If it was just two fields I could use the statistic/sum option along with the reference/sum option, but I have 4 fields.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585055#M10748</guid>
      <dc:creator>LJackson29</dc:creator>
      <dc:date>2025-02-13T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585097#M10749</link>
      <description>&lt;P&gt;When I was testing this, I found that if Statistic was selected on the Data tab, only the field selected for the statistic calculation was available in the attribute expression editor. If Feature is selected on the Data tab, all fields are available for the datapoint. What I mean by a field being available in the attribute expression editor may not be clear, so let me clarify that. What I mean is that when you expand the attribute expression editor using the 'Pop out editor' button next to the 'Delete expression' button, you can then access hints for Profile variables by clicking the (x) button. If you expand the $datapoint entry, it will show you the variables that you have access to.&lt;/P&gt;&lt;P&gt;My guess is that having Statistic selected limits the values available for use in the attribute expression, preventing the expression from executing properly even if you have correctly specified the fields you want to pull values from.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 18:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585097#M10749</guid>
      <dc:creator>DanielReynolds4</dc:creator>
      <dc:date>2025-02-13T18:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585129#M10750</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/377399"&gt;@DanielReynolds4&lt;/a&gt;&amp;nbsp;I apologize for mis-reading your first message. I changed it to Feature, and I don't have any errors in the code, but unfortunately, it does not show the summed value in the indicator, but the value for the first feature in Field A, I think because it is set to "feature". Any other thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 20:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585129#M10750</guid>
      <dc:creator>LJackson29</dc:creator>
      <dc:date>2025-02-13T20:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585154#M10751</link>
      <description>&lt;P&gt;I'm not really sure if there is a way to aggregate values from multiple features. You may need to create a new data expression to summarize the data.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 21:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585154#M10751</guid>
      <dc:creator>DanielReynolds4</dc:creator>
      <dc:date>2025-02-13T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboards Indicator Attribute Expression to Sum across fields with conditions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585173#M10752</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/377399"&gt;@DanielReynolds4&lt;/a&gt;&amp;nbsp;Thanks. Unfortunately I have filters that the indicator needs to work with and a 2nd data expression that would be summary data would make that difficult I think.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 21:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboards-indicator-attribute-expression/m-p/1585173#M10752</guid>
      <dc:creator>LJackson29</dc:creator>
      <dc:date>2025-02-13T21:53:18Z</dc:date>
    </item>
  </channel>
</rss>

