<?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: Indicator Expressions in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206974#M6736</link>
    <description>&lt;P&gt;Just replying to myself that just a little help is sometimes enough to push someone in the right direction.&lt;/P&gt;&lt;P&gt;I answered my own question with;&lt;/P&gt;&lt;P&gt;middleText: round ($datapoint["avg_Score__Overall_mean"],2)&lt;/P&gt;</description>
    <pubDate>Sat, 27 Aug 2022 01:57:43 GMT</pubDate>
    <dc:creator>JonathanMcD</dc:creator>
    <dc:date>2022-08-27T01:57:43Z</dc:date>
    <item>
      <title>Indicator Expressions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206617#M6733</link>
      <description>&lt;P&gt;Apologies for the question, despite using AGOL for years I've never had the chance to sit down and learn Arcade.&lt;BR /&gt;&lt;BR /&gt;I've an indicator that shows a value that can range between 0 and 5 based upon a single value held in the dataset. I'm wishing to include a small text description in the bottomText based upon the value returned.&lt;/P&gt;&lt;P&gt;Is this possible in an indicator?&lt;/P&gt;&lt;P&gt;Basically;&lt;/P&gt;&lt;P&gt;if a value is &amp;gt;0 but &amp;lt;1 , returns "a",&lt;/P&gt;&lt;P&gt;if a value is &amp;gt;=1 but &amp;lt;2 , returns "b" etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the indicator, if I add bottomText: Sdatapoint ["value"] &amp;gt;0 &amp;lt;1,&amp;nbsp;&lt;/P&gt;&lt;P&gt;a value of True is returned, which is fine....but my lack of knowledge prohibits me from taking this further.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 02:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206617#M6733</guid>
      <dc:creator>JonathanMcD</dc:creator>
      <dc:date>2022-08-26T02:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator Expressions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206738#M6734</link>
      <description>&lt;P&gt;Yes, you can do this. First in the indicator tab, click the Enable button in the Advanced Formatting section.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-08-26_9-37-07.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49547iC5F34A700A345D53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-08-26_9-37-07.png" alt="2022-08-26_9-37-07.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next, make these changes to the Expression. You'll be adding the code and uncommenting the bottomText properties.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var value = $datapoint["value"];
var bText = When(value == 0, "z",
      value &amp;lt; 1, "a",
      value &amp;lt; 2, "b",
      value &amp;lt; 3, "c",
      value &amp;lt; 4, "d",
      value &amp;lt;= 5, "e",
      "n/a")
return {
    //textColor:'',
    //backgroundColor:'',
    //topText: '',
    //topTextColor: '',
    //topTextOutlineColor: '',
    //topTextMaxSize: 'medium',
    middleText: $datapoint["count_OBJECTID"],
    middleTextColor: '',
    middleTextOutlineColor: '',
    middleTextMaxSize: 'large',
    bottomText: bText,
    bottomTextColor: '',
    bottomTextOutlineColor: '',
    bottomTextMaxSize: 'medium',
    //iconName:'',
    //iconAlign:'left',
    //iconColor:'',
    //iconOutlineColor:'',
    //noValue:false,
    //attributes: {
      // attribute1: '',
      // attribute2: ''
    // }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206738#M6734</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-08-26T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator Expressions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206973#M6735</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is absolutely perfect, thank you. This is really helpful.&lt;BR /&gt;&lt;BR /&gt;One final question;&lt;BR /&gt;&lt;BR /&gt;Using Arcade doesn't allow me to then dictate the values and decimal places. Is it possible to set places to 2 using, somewhere, the round function?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 01:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206973#M6735</guid>
      <dc:creator>JonathanMcD</dc:creator>
      <dc:date>2022-08-27T01:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Indicator Expressions</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206974#M6736</link>
      <description>&lt;P&gt;Just replying to myself that just a little help is sometimes enough to push someone in the right direction.&lt;/P&gt;&lt;P&gt;I answered my own question with;&lt;/P&gt;&lt;P&gt;middleText: round ($datapoint["avg_Score__Overall_mean"],2)&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 01:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/indicator-expressions/m-p/1206974#M6736</guid>
      <dc:creator>JonathanMcD</dc:creator>
      <dc:date>2022-08-27T01:57:43Z</dc:date>
    </item>
  </channel>
</rss>

