<?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 Dashboard/Indicator and Arcade in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135048#M5749</link>
    <description>&lt;P&gt;Background - using Dashboard and the indicator widget.&amp;nbsp; When the widget has no data, the return is no data. Instead I would like to return a zero, "0".&amp;nbsp; Now with Arcade ability, I thought I might be able to do this, but need your help.&amp;nbsp; Here is what I have tried.&lt;/P&gt;&lt;P&gt;Using the below, I get "Unexpected Token If".&amp;nbsp; I wonder if this is because "If" is not listed in the function list.&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;//textColor:'',&lt;BR /&gt;//backgroundColor:'',&lt;BR /&gt;topText: If ($datapoint["sum_number_of_citations_issued"] &amp;gt; '0'){&lt;BR /&gt;return '$datapoint["sum_number_of_citations_issued"]';&lt;BR /&gt;} else if ($datapoint["sum_number_of_citations_issued"] &amp;lt; '0'){&lt;BR /&gt;return '0';&lt;BR /&gt;}&lt;BR /&gt;topTextColor: '#ffffff',&lt;BR /&gt;topTextOutlineColor: '',&lt;BR /&gt;topTextMaxSize: 'medium',&lt;BR /&gt;//middleText: '',&lt;BR /&gt;//middleTextColor: '',&lt;BR /&gt;//middleTextOutlineColor: '',&lt;BR /&gt;//middleTextMaxSize: 'large',&lt;BR /&gt;//bottomText: '',&lt;BR /&gt;//bottomTextColor: '',&lt;BR /&gt;//bottomTextOutlineColor: '',&lt;BR /&gt;//bottomTextMaxSize: 'medium',&lt;BR /&gt;//iconName:'',&lt;BR /&gt;//iconAlign:'left',&lt;BR /&gt;//iconColor:'',&lt;BR /&gt;//iconOutlineColor:'',&lt;BR /&gt;//noValue:false,&lt;BR /&gt;//attributes: {&lt;BR /&gt;//attribute1: '',&lt;BR /&gt;// attribute2: ''&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I also tried:&lt;/P&gt;&lt;P&gt;IIf($datapoint["sum_number_of_citations_issued"] &amp;lt; 1, '0')&lt;/P&gt;&lt;P&gt;and the error I get is Syntax Error: Function signature does not match; IIF&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 17:13:39 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-01-19T17:13:39Z</dc:date>
    <item>
      <title>Dashboard/Indicator and Arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135048#M5749</link>
      <description>&lt;P&gt;Background - using Dashboard and the indicator widget.&amp;nbsp; When the widget has no data, the return is no data. Instead I would like to return a zero, "0".&amp;nbsp; Now with Arcade ability, I thought I might be able to do this, but need your help.&amp;nbsp; Here is what I have tried.&lt;/P&gt;&lt;P&gt;Using the below, I get "Unexpected Token If".&amp;nbsp; I wonder if this is because "If" is not listed in the function list.&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;//textColor:'',&lt;BR /&gt;//backgroundColor:'',&lt;BR /&gt;topText: If ($datapoint["sum_number_of_citations_issued"] &amp;gt; '0'){&lt;BR /&gt;return '$datapoint["sum_number_of_citations_issued"]';&lt;BR /&gt;} else if ($datapoint["sum_number_of_citations_issued"] &amp;lt; '0'){&lt;BR /&gt;return '0';&lt;BR /&gt;}&lt;BR /&gt;topTextColor: '#ffffff',&lt;BR /&gt;topTextOutlineColor: '',&lt;BR /&gt;topTextMaxSize: 'medium',&lt;BR /&gt;//middleText: '',&lt;BR /&gt;//middleTextColor: '',&lt;BR /&gt;//middleTextOutlineColor: '',&lt;BR /&gt;//middleTextMaxSize: 'large',&lt;BR /&gt;//bottomText: '',&lt;BR /&gt;//bottomTextColor: '',&lt;BR /&gt;//bottomTextOutlineColor: '',&lt;BR /&gt;//bottomTextMaxSize: 'medium',&lt;BR /&gt;//iconName:'',&lt;BR /&gt;//iconAlign:'left',&lt;BR /&gt;//iconColor:'',&lt;BR /&gt;//iconOutlineColor:'',&lt;BR /&gt;//noValue:false,&lt;BR /&gt;//attributes: {&lt;BR /&gt;//attribute1: '',&lt;BR /&gt;// attribute2: ''&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I also tried:&lt;/P&gt;&lt;P&gt;IIf($datapoint["sum_number_of_citations_issued"] &amp;lt; 1, '0')&lt;/P&gt;&lt;P&gt;and the error I get is Syntax Error: Function signature does not match; IIF&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135048#M5749</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-19T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard/Indicator and Arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135063#M5750</link>
      <description>&lt;P&gt;Check if the following expression works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var s = $datapoint["sum_number_of_citations_issued"]
IIF(s &amp;lt; 1, 0, s)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135063#M5750</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-01-19T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard/Indicator and Arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135149#M5751</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;States unexpected token var.&amp;nbsp; Am I putting it in the wrong place. This is the indicator widget on dashboard.&amp;nbsp; I then removed it and placed the two lines at the top, but I wasn't sure what to put after topText: .&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;BR /&gt;return {&lt;BR /&gt;//textColor:'',&lt;BR /&gt;//backgroundColor:'',&lt;BR /&gt;topText: var s = $datapoint["sum_number_of_citations_issued"]&lt;BR /&gt;IIF(s &amp;lt; 1, 0, s)&lt;BR /&gt;topTextColor: '#ffffff',&lt;BR /&gt;topTextOutlineColor: '',&lt;BR /&gt;topTextMaxSize: 'medium',&lt;BR /&gt;//middleText: '',&lt;BR /&gt;//middleTextColor: '',&lt;BR /&gt;//middleTextOutlineColor: '',&lt;BR /&gt;//middleTextMaxSize: 'large',&lt;BR /&gt;//bottomText: '',&lt;BR /&gt;//bottomTextColor: '',&lt;BR /&gt;//bottomTextOutlineColor: '',&lt;BR /&gt;//bottomTextMaxSize: 'medium',&lt;BR /&gt;//iconName:'',&lt;BR /&gt;//iconAlign:'left',&lt;BR /&gt;//iconColor:'',&lt;BR /&gt;//iconOutlineColor:'',&lt;BR /&gt;//noValue:false,&lt;BR /&gt;//attributes: {&lt;BR /&gt;// attribute1: '',&lt;BR /&gt;// attribute2: ''&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 20:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135149#M5751</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-19T20:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard/Indicator and Arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135156#M5752</link>
      <description>&lt;P&gt;Just try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$datapoint["sum_number_of_citations_issued"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For No Data value, just change the Default Label to 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_0-1642627693579.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31831i46C5EEB05256EB79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_0-1642627693579.png" alt="JayantaPoddar_0-1642627693579.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JayantaPoddar_1-1642627751259.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31832i23055D0E08CD69C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JayantaPoddar_1-1642627751259.png" alt="JayantaPoddar_1-1642627751259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135156#M5752</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-01-19T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard/Indicator and Arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135948#M5773</link>
      <description>&lt;P&gt;Thank you so much! Is this a new feature with 10.9.1 or have I been blind! So easy. I knew it had to be. Thank you, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 18:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1135948#M5773</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-21T18:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard/Indicator and Arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1316544#M8227</link>
      <description>&lt;P&gt;This solution has a limitation. If the backgroundColor property is being used to define a specific color for the indicator's background, there doesn't seem to be a way to display the No Data label &lt;EM&gt;and&lt;/EM&gt; keep the indicator's background color. When the no data label is displayed, the indicator color will also change to the "element background color" defined on the dashboard's theme, which is not ideal.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 17:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-indicator-and-arcade/m-p/1316544#M8227</guid>
      <dc:creator>NunoFarinha</dc:creator>
      <dc:date>2023-08-08T17:54:56Z</dc:date>
    </item>
  </channel>
</rss>

