<?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: Advanced formatting using Arcade in Dashboards in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1274580#M51220</link>
    <description>&lt;P&gt;Hi Aurelian,&lt;/P&gt;&lt;P&gt;Unless I'm misunderstanding I think you might be over-complicating things. When adding the indicator widget you're able to add a filter (in this case FREQ_MAINTENANCE not equal 0) and choose the statistic as "SUM" on "Shape_Length".&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 09:33:38 GMT</pubDate>
    <dc:creator>JoshuaSharp-Heward</dc:creator>
    <dc:date>2023-04-03T09:33:38Z</dc:date>
    <item>
      <title>Advanced formatting using Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1274447#M51211</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I am trying to display in Dahboard via an indicator widget the sum of the Length shape of a layer by filtering such that the frequency is different from 0.&lt;/P&gt;&lt;P&gt;With the help of the community here is the expression:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var filter = Filter($layer, 'FREQ_MAINTENANCE &amp;lt;&amp;gt; 0');&lt;/P&gt;&lt;P&gt;var Sum = Sum(filter, 'Shape__Length');&lt;/P&gt;&lt;P&gt;return Sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However Dashboard with the advanced format, I'm forced to use &lt;STRONG&gt;$datapoint&lt;/STRONG&gt; and I don't really see how to get out of it.&lt;/P&gt;&lt;P&gt;Which formula to put before the return&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;return {&lt;/STRONG&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;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topText: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topTextColor: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topTextOutlineColor: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//topTextMaxSize: 'medium',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;middleText&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;STRONG&gt;$datapoint.sum_Shape__Length&lt;/STRONG&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;middleTextColor&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;''&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;middleTextOutlineColor&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;''&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;middleTextMaxSize&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'large'&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;//bottomText: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomTextColor: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomTextOutlineColor: '',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//bottomTextMaxSize: 'medium',&lt;/SPAN&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;After several reading of document, I did not succeed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also what is the difference between: $datapoint.field AND $datapoint.["field"] &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 02 Apr 2023 20:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1274447#M51211</guid>
      <dc:creator>AurelienJOSSET</dc:creator>
      <dc:date>2023-04-02T20:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced formatting using Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1274580#M51220</link>
      <description>&lt;P&gt;Hi Aurelian,&lt;/P&gt;&lt;P&gt;Unless I'm misunderstanding I think you might be over-complicating things. When adding the indicator widget you're able to add a filter (in this case FREQ_MAINTENANCE not equal 0) and choose the statistic as "SUM" on "Shape_Length".&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 09:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1274580#M51220</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2023-04-03T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced formatting using Arcade in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1279046#M51484</link>
      <description>&lt;P&gt;Hi Josh.&lt;BR /&gt;My return is late, sorry. I finally figured out my problem. I also misspoke. In DashBoard if you want to work on a slightly complex data set (Layer A which intersects layer B for example) you have to create it via "Data expression".&lt;/P&gt;&lt;P&gt;We learn every day&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Aurelian&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 20:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/advanced-formatting-using-arcade-in-dashboards/m-p/1279046#M51484</guid>
      <dc:creator>AurelienJOSSET</dc:creator>
      <dc:date>2023-04-15T20:35:15Z</dc:date>
    </item>
  </channel>
</rss>

