<?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 issue within dashboard in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654467#M11488</link>
    <description>&lt;P&gt;Thanks again Neal!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first one made the script fail. The second one worked but the issue with no data remained. Thanks though!!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 13:36:46 GMT</pubDate>
    <dc:creator>MicBry</dc:creator>
    <dc:date>2025-10-01T13:36:46Z</dc:date>
    <item>
      <title>Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654146#M11470</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have an issue connected to my dashboard and its widgets. I am currently using enterprise 11.3. In short, my dashboard uses a category selector and an indicator. The widgets have different data, but are connected through similar fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My indicator uses a datapoint and a redference value. Both use the same data source, however they are filtered in different ways. My first value (datapoint) shows land (m2) that our municipal landlort taker care of. The seconf value shows land that the residents themselves takes care of. The third value is a grouping of the other to. In short:&lt;/P&gt;&lt;P&gt;Datapoint = Area m2&lt;/P&gt;&lt;P&gt;Reference value = other areas m2&lt;/P&gt;&lt;P&gt;Own value = Area + other areas m2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, to the issue. I have certain areas where the reference value is non existent, i.e. areas where no land is to be taken care of by the residents. This makes the arcade script fail behind the scenes. The indicator returns no data even when an area containt datapoint but not reference value.I would like the reference value to be treated as 0 so that i always get a result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Down below is a basic interpretation of my script:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;allmannaytor&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$datapoint&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"sum_SHAPE.STArea()"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$reference&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"sum_SHAPE.STArea()"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;total&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;allmannaytor&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//textColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//backgroundColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;n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lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconAlign:'left',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconOutlineColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//noValue:false,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//attributes: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// attribute1: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// attribute2: ''&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have tried to adjust this script adding if-statements, isempty and so on. Nothing is working for me. I need something that tells the dashboard to check for reference value first. If the value is non existing (not 0) it needs to be interpreted as 0. If a value exists this function can be ignored.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any suggestions?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Sep 2025 12:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654146#M11470</guid>
      <dc:creator>MicBry</dc:creator>
      <dc:date>2025-09-30T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654289#M11473</link>
      <description>&lt;P&gt;Since your `total` variable, and the rich text you are constructing at the end both reference this possibly invalid value, you are likely running into issues of referencing an unassigned variable at some point if you try to bypass that single variable.&lt;/P&gt;&lt;P&gt;Instead, your if statement should look something like below. I have also made the variable assignment as the entire string that you are inserting into your values later. So you would need to change that portion to reflect that if you wanted to use this.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(isEmpty($reference["sum_SHAPE.STArea()"]) || isNan($reference["sum_SHAPE.STArea()"])){
  var hyresgastskottaytor = 'No Available Data'
  var allmannaytor = 'Allmänna ytor: ' + Text(Round($datapoint["sum_SHAPE.STArea()"], 0), "#,###") + ' m²'
  var total = 'Totala ytor: ' + Text(Round($reference["sum_SHAPE.STArea()"] + $datapoint["sum_SHAPE.STArea()"], 0), "#,###") + ' m²'
}else{
  var hyresgastskottaytor = 'Hyresgästskötta ytor:  ' + Text(Round($reference["sum_SHAPE.STArea()"], 0), "#,###") + ' m²'
  var allmannaytor = 'Allmänna ytor: ' + Text(Round($datapoint["sum_SHAPE.STArea()"], 0), "#,###") + ' m²'
  var total = 'Totala ytor: ' + Text(Round($reference["sum_SHAPE.STArea()"], 0), "#,###") + ' m²'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 17:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654289#M11473</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-09-30T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654297#M11475</link>
      <description>&lt;P&gt;Would something like this work?&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;var hyresgastskottaytor = $reference["sum_SHAPE.STArea()"]

var hyresgastskottaytor_fix = iif(hyresgastskottaytor == '',0, hyresgastskottaytor)

var total = allmannaytor + hyresgastskottaytor_fix&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-dashboards-questions/create-an-if-or-iif-statement-for-details-or-list/td-p/1146476" target="_blank"&gt;https://community.esri.com/t5/arcgis-dashboards-questions/create-an-if-or-iif-statement-for-details-or-list/td-p/1146476&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 17:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654297#M11475</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-09-30T17:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654299#M11476</link>
      <description>&lt;P&gt;This would not work since you are checking to see if a numeric value is an empty string. This condition will always evaluate to the field value. You would need to use:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var hyresgastskottaytor_fix = iif(isEmpty(hyresgastskottaytor) || isNan(hyresgastskottaytor),0, hyresgastskottaytor)&lt;/LI-CODE&gt;&lt;P&gt;If for some reason your data set has empty strings, you could add an additional condition to evaluate for ''. But it shouldn't be necessary.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 17:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654299#M11476</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-09-30T17:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654401#M11480</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thank you so much for reaching out. It didn't work but i appriciate you trying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best, Michaela&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 05:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654401#M11480</guid>
      <dc:creator>MicBry</dc:creator>
      <dc:date>2025-10-01T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654402#M11481</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I changed the script to this:&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$reference&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"sum_SHAPE.STArea()"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;hyresgastskottaytor_fix&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;iif&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt;) || &lt;/SPAN&gt;&lt;SPAN&gt;isNan&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;allmannaytor&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$datapoint&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"sum_SHAPE.STArea()"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;total&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;allmannaytor&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor_fix&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//textColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPA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AN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconName:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconAlign:'left',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//iconOutlineColor:'',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//noValue:false,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//attributes: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// attribute1: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// attribute2: ''&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm getting the same result. Did i missunderstand your suggestion? Thank you so much for taking the time to answer me, appriciate it!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best, Michaela&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Oct 2025 05:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654402#M11481</guid>
      <dc:creator>MicBry</dc:creator>
      <dc:date>2025-10-01T05:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654422#M11482</link>
      <description>&lt;P&gt;If that is producing an error at that data point specifically, I would recommend looking at the value in that field specifically. If it is null or nan, it should be evaluating to zero and function as intended. If the value is something other than these two, you would need to add additional logic to handle the data.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 10:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654422#M11482</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-10-01T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654429#M11483</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;The issue is that i have neither 0 nor null. The referencepoint does not exist for certain selections. I would like to check if the referencevalue exists, not what it contains. I'm not great with arcade so maybe that is what your script was supposed to check(?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Michaela&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 11:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654429#M11483</guid>
      <dc:creator>MicBry</dc:creator>
      <dc:date>2025-10-01T11:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654460#M11486</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/717273"&gt;@MicBry&lt;/a&gt;&amp;nbsp;couldn't hurt to try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor_fix&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;iif&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;isEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt;) ||&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;isNan&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor ||&amp;nbsp;hyresgastskottaytor==''&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hyresgastskottaytor&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;could also try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var&amp;nbsp;hyresgastskottaytor_fix&amp;nbsp;= DefaultValue(hyresgastskottaytor, 0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654460#M11486</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-10-01T13:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654467#M11488</link>
      <description>&lt;P&gt;Thanks again Neal!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first one made the script fail. The second one worked but the issue with no data remained. Thanks though!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654467#M11488</guid>
      <dc:creator>MicBry</dc:creator>
      <dc:date>2025-10-01T13:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654489#M11490</link>
      <description>&lt;P&gt;Got it! In this case it sounds like we are checking whether the profile variable `$reference` has been defined with a feature/data.&lt;/P&gt;&lt;P&gt;I am not sure if this will work since $reference is not being defined... But you could try:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if(HasKey($reference, 'sum_SHAPE.STArea()')){
  var hyresgastskottaytor = $reference["sum_SHAPE.STArea()"]
}else{
  var hyresgastskottaytor = 0
}

var hyresgastskottaytor_fix = iif(isEmpty(hyresgastskottaytor) || isNan(hyresgastskottaytor),0, hyresgastskottaytor)

var allmannaytor = $datapoint["sum_SHAPE.STArea()"]

var total = allmannaytor + hyresgastskottaytor_fix&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Oct 2025 14:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654489#M11490</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-10-01T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654522#M11491</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/717273"&gt;@MicBry&lt;/a&gt;&amp;nbsp;I am not sure this can be done in this manner.&amp;nbsp; I don't think the indicator even gets to the calculation part in the advanced editor, If either the datapoint or the reference can't be evaluated, the indicator defaults to 'No Data'.&amp;nbsp; I ran a couple tests, hard coded&amp;nbsp; a variable in place of the reference, and as soon as I filtered the data to something that the reference couldn't evaluate, the indicator went to no data, even though the advanced editor should have evaluated correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 20:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654522#M11491</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-10-01T20:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654733#M11492</link>
      <description>&lt;P&gt;Hi again Neal!&lt;/P&gt;&lt;P&gt;That's my thought as well.. I've run so many test by now and it doesn't seem like it wants to accept any solution if the referencepoint can be seen as non existant. It's unfortionaty, but i'm happy to see that we both reached the same conclusion. Thanks again for taking the time to look further into this for me. Really appriciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Michaela&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 06:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654733#M11492</guid>
      <dc:creator>MicBry</dc:creator>
      <dc:date>2025-10-02T06:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade issue within dashboard</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654780#M11493</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/717273"&gt;@MicBry&lt;/a&gt;&amp;nbsp;Maybe a new data expression like this would be the direction to go.&amp;nbsp; It makes a new feature set with the original "sum" and then the new column is zeroed out if it meets the criteria, otherwise it is the sum.&amp;nbsp; You can then build the indicator in the same manner but using the expression as the source.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var portal = Portal('https://www.arcgis.com');
var feature_layer = FeatureSetByPortalItem(portal, 'XXXXXXXXXXXXXXXXXXXX', X, ['SumField', 'CriteriaField']);


var New_Features = [];


for (var f in feature_layer) {

    var SumField_Fix = When(
        f.CriteriaField == 'Criteria', 0,
         f.SumField
    );

    var New_Feature = {
        attributes: {
            CriteriaField: f.CriteriaField,
            SumField_New: SumField_Fix,
            SumField_Old: f.SumField
        }
    };
    

    Push(New_Features, New_Feature);
}

var out_dict = {
    fields: [
        { name: "CriteriaField", type: "esriFieldTypeString" },
        { name: "SumField_New", type: "esriFieldTypeInteger" },
        { name: "SumField_Old", type: "esriFieldTypeInteger" }
    ],
    geometryType: "",
    features: New_Features
};


return FeatureSet(Text(out_dict));&lt;/LI-CODE&gt;&lt;P&gt;you would just have to make sure you include the proper fields for your filter/queries.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 13:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-issue-within-dashboard/m-p/1654780#M11493</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-10-02T13:05:55Z</dc:date>
    </item>
  </channel>
</rss>

