<?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 Indicator in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259611#M7356</link>
    <description>&lt;P&gt;Thanks but that totally does not work. I set the Parent layer (total number of sites) to be the "Layer A." I set the table holding the survey results to be "Layer B." In the indicator, I set the Top text to be {value}, the middle text to be {difference}, and the bottom text to be {reference} as you showed in your screenshots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Top text gives my the total number of sites.&lt;/P&gt;&lt;P&gt;The Middle text also just displays the total number of sites.&lt;/P&gt;&lt;P&gt;The Bottom text just shows how many surveys have the value of "Yes" in the "Remediation_Complete" field.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 00:27:06 GMT</pubDate>
    <dc:creator>janderson_ksninc</dc:creator>
    <dc:date>2023-02-18T00:27:06Z</dc:date>
    <item>
      <title>Arcade Expression for Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259582#M7354</link>
      <description>&lt;P&gt;I built a dashboard that pulls from a feature layer with a related table that holds survey submissions. I would like to do calcs using values from both the parent table and related table.&lt;/P&gt;&lt;P&gt;I would like to take the count of all values from a field named "Remediation_Complete" that equal "Yes" from the related table and subtract that number from the total number of sites in the parent table. I'm thinking of something like this (pseudo code):&lt;/P&gt;&lt;P&gt;var RemComp = Count(FeatureLayerName, FieldName =="Yes") #calls the parent layer, calls the field name and counts all values that are equal to "Yes."&lt;/P&gt;&lt;P&gt;var TotalSite = Count(ParentTableName, ObjectID) #Calls the ParentTable and counts the total amount of records&lt;/P&gt;&lt;P&gt;return TotalSite -RemComp # Takes the total number of sites and subtracts the amount that have remediation completed and displays the amount left to be addressed.&lt;/P&gt;&lt;P&gt;Is there a way to do this in Arcade or Python?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 22:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259582#M7354</guid>
      <dc:creator>janderson_ksninc</dc:creator>
      <dc:date>2023-02-17T22:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259599#M7355</link>
      <description>&lt;P&gt;I mean, you &lt;EM&gt;could&lt;/EM&gt; use code for this, but it's just subtracting one count from another? An indicator has built-in options for this, the &lt;STRONG&gt;reference value&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1676674654863.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63176iBE4DFD9822871785/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1676674654863.png" alt="jcarlson_0-1676674654863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can set the reference to a totally different layer, and apply filters to one or both. So your statistic could be the county of "Yes" features in Layer A, the reference could be the count of records in Layer B.&lt;/P&gt;&lt;P&gt;Then just put &lt;STRONG&gt;{difference} &lt;/STRONG&gt;in your indicator.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1676674833379.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63177i3C490912E0D300EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1676674833379.png" alt="jcarlson_1-1676674833379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259599#M7355</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-02-17T23:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259611#M7356</link>
      <description>&lt;P&gt;Thanks but that totally does not work. I set the Parent layer (total number of sites) to be the "Layer A." I set the table holding the survey results to be "Layer B." In the indicator, I set the Top text to be {value}, the middle text to be {difference}, and the bottom text to be {reference} as you showed in your screenshots.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Top text gives my the total number of sites.&lt;/P&gt;&lt;P&gt;The Middle text also just displays the total number of sites.&lt;/P&gt;&lt;P&gt;The Bottom text just shows how many surveys have the value of "Yes" in the "Remediation_Complete" field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 00:27:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259611#M7356</guid>
      <dc:creator>janderson_ksninc</dc:creator>
      <dc:date>2023-02-18T00:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression for Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259613#M7357</link>
      <description>&lt;P&gt;I got it to work by switching the middle and bottom text. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 00:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-for-indicator/m-p/1259613#M7357</guid>
      <dc:creator>janderson_ksninc</dc:creator>
      <dc:date>2023-02-18T00:35:53Z</dc:date>
    </item>
  </channel>
</rss>

