<?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: Dashboard Standard Deviation in Indicator in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1407213#M9384</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;thanks for your reply. Your code does seem promising. However, I do have category selectors that update the map, and I would like the indicators to update as well. So I don't think this would work for my purposes. If it can be done, then I am hoping something similar would work for other statistics like in the attached screenshot. I am also trying to figure out if these stats can be shown in Insights, so I will probably post on that Community as well. Thanks again&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 17:16:12 GMT</pubDate>
    <dc:creator>AdamHart1</dc:creator>
    <dc:date>2024-04-08T17:16:12Z</dc:date>
    <item>
      <title>Dashboard Standard Deviation in Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1405982#M9359</link>
      <description>&lt;P&gt;I have a dashboard with some indicators that I would like to show the average and standard deviations of values. The attached picture probably explains it better, but I would like to have the middle indicator have the average value. In the next two indicators to the right, I would like to show the average plus 1 standard deviation, and the next one to the right would be 2 standard deviations above the average. The ones to the left would be 1 and 2 standard deviations below the average. I just can't figure out the right combination of settings and/or Arcade expression to accomplish this. Any help would be appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 19:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1405982#M9359</guid>
      <dc:creator>AdamHart1</dc:creator>
      <dc:date>2024-04-04T19:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Standard Deviation in Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1406348#M9372</link>
      <description>&lt;P&gt;I think Arcade is the route to take on this. I don't think we can make it dynamic, if that matters. Arcade has a function built in for standard deviation, but requires your values to be in an array, not a FeatureSet.&lt;BR /&gt;To make things easier on your dashboard, we can calculate all 4 things in one go.&lt;/P&gt;&lt;P&gt;var fs = FeatureSetByPortalItem(&lt;BR /&gt;Portal('your portal URL'),&lt;BR /&gt;'itemid of layer',&lt;BR /&gt;0, // layer index&lt;BR /&gt;['fields', 'you', 'need'],&lt;BR /&gt;false&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;// value array&lt;BR /&gt;var numbers = []&lt;/P&gt;&lt;P&gt;for (var f in fs) {&lt;BR /&gt;Push(numbers, f['field_you_are_calculating_stdev_for'])&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// get standard deviation&lt;BR /&gt;var sdev = Stdev(numbers)&lt;/P&gt;&lt;P&gt;// mean&lt;BR /&gt;var mean = Average(numbers)&lt;/P&gt;&lt;P&gt;// output dict for indicators&lt;BR /&gt;var out_dict = {&lt;BR /&gt;fields: [&lt;BR /&gt;{name: 'stat', type: 'esriFieldTypeString'},&lt;BR /&gt;{name: 'value', type: 'esriFieldTypeDouble'}&lt;BR /&gt;],&lt;BR /&gt;geometryType: '',&lt;BR /&gt;features: [&lt;BR /&gt;{attributes: {stat: 'pos_one_stdev', value: mean + sdev}},&lt;BR /&gt;{attributes: {stat: 'pos_two_stdev', value: mean + (sdev * 2)}},&lt;BR /&gt;{attributes: {stat: 'neg_one_stdev', value: mean - sdev}},&lt;BR /&gt;{attributes: {stat: 'neg_two_stdev', value: mean - (sdev * 2)}}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return FeatureSet(Text(out_dict))&lt;/P&gt;&lt;P&gt;Once you've got that, you'll end up with a four-row FeatureSet with your values. Just set those indicators to Feature and filter each so that the relevant statistic is shown.&lt;/P&gt;&lt;P&gt;Apologies for the lack of formatting in the post. The site keeps insisting that there is invalid HTML in my post.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1406348#M9372</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-04-05T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Standard Deviation in Indicator</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1407213#M9384</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;thanks for your reply. Your code does seem promising. However, I do have category selectors that update the map, and I would like the indicators to update as well. So I don't think this would work for my purposes. If it can be done, then I am hoping something similar would work for other statistics like in the attached screenshot. I am also trying to figure out if these stats can be shown in Insights, so I will probably post on that Community as well. Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 17:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-standard-deviation-in-indicator/m-p/1407213#M9384</guid>
      <dc:creator>AdamHart1</dc:creator>
      <dc:date>2024-04-08T17:16:12Z</dc:date>
    </item>
  </channel>
</rss>

