<?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 ArcGIS Dashboard Arcade Data Expression in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboard-arcade-data-expression/m-p/1264828#M7445</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create an Arcade data expression in a Dashboard. I am trying to calculate an average Trees/Acre for each Stand.&amp;nbsp;&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;&lt;LI-CODE lang="c"&gt;	var p = 'https://maps.arcgis.com'
	var itemId = 'a8af124e92af44579e3fd07bb59ebb4c'
	var fs = FeatureSetByPortalItem(Portal(p), itemId, 0, ['Stand_No', 'Tally', 'Plot_Configuration', 'Plot_Name', 'Plot_Status', 'Plot_Size'], false)
    
    var Mach = Filter(fs, 'Plot_Size = 0.01 * 10000')
    var Hand = Filter(fs, 'Plot_Size = 0.02 * 2500')
  

return GroupBy(fs,['Stand_No','Plot_Configuration'],[{name: 'TallySum', expression: 'Tally',statistic: 'SUM'},
    {name: 'TCount', expression: '1', statistic: 'COUNT'},{name: 'MachAcres', expression: 'Mach', statistic: 'AVG'},
    {name: 'HandAcres', expression: 'Hand', statistic: 'AVG'}])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;For each individual 'Stand_No':&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;I need to multiply each Tally by either 50 or 100 based on the attributes in the 'Plot_Size' field.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Find the average of that new number&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I'm pretty sure the var in Lines 5 &amp;amp; 6 are incorrect. They are supposed to do the calculations to change the Plot_Size of 0.01 and 0.02 to 100 and 50 respectively to use as a multiplier.&amp;nbsp; Ex: (0.01 = multiplyer of 100) and (0.02 is&amp;nbsp; multiplier&amp;nbsp;of 50) and then get the average of those numbers in the GroupedBy expression since I need them by Stand_No&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;For Example: StandNo =&amp;nbsp;02331254&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;There are 3 Plot (Tally) points.&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Plot 3:&amp;nbsp; Tally = 11&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Plot 6:&amp;nbsp; Tally = 11&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Plot 9: Tally=12&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The Plot_Size is "0.02" so I need to multiply the Tally numbers by 50.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;11*50 + 11*50 + 12*50 = 1700&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I need to find the average of that new number&amp;nbsp; (there are 3 plot points in that stand)&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;1700/3 = 566.66 Trees per Acre per Stand&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 03:38:43 GMT</pubDate>
    <dc:creator>M_M</dc:creator>
    <dc:date>2023-03-08T03:38:43Z</dc:date>
    <item>
      <title>ArcGIS Dashboard Arcade Data Expression</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboard-arcade-data-expression/m-p/1264828#M7445</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create an Arcade data expression in a Dashboard. I am trying to calculate an average Trees/Acre for each Stand.&amp;nbsp;&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;&lt;LI-CODE lang="c"&gt;	var p = 'https://maps.arcgis.com'
	var itemId = 'a8af124e92af44579e3fd07bb59ebb4c'
	var fs = FeatureSetByPortalItem(Portal(p), itemId, 0, ['Stand_No', 'Tally', 'Plot_Configuration', 'Plot_Name', 'Plot_Status', 'Plot_Size'], false)
    
    var Mach = Filter(fs, 'Plot_Size = 0.01 * 10000')
    var Hand = Filter(fs, 'Plot_Size = 0.02 * 2500')
  

return GroupBy(fs,['Stand_No','Plot_Configuration'],[{name: 'TallySum', expression: 'Tally',statistic: 'SUM'},
    {name: 'TCount', expression: '1', statistic: 'COUNT'},{name: 'MachAcres', expression: 'Mach', statistic: 'AVG'},
    {name: 'HandAcres', expression: 'Hand', statistic: 'AVG'}])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;For each individual 'Stand_No':&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;I need to multiply each Tally by either 50 or 100 based on the attributes in the 'Plot_Size' field.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Find the average of that new number&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I'm pretty sure the var in Lines 5 &amp;amp; 6 are incorrect. They are supposed to do the calculations to change the Plot_Size of 0.01 and 0.02 to 100 and 50 respectively to use as a multiplier.&amp;nbsp; Ex: (0.01 = multiplyer of 100) and (0.02 is&amp;nbsp; multiplier&amp;nbsp;of 50) and then get the average of those numbers in the GroupedBy expression since I need them by Stand_No&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;For Example: StandNo =&amp;nbsp;02331254&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;There are 3 Plot (Tally) points.&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Plot 3:&amp;nbsp; Tally = 11&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Plot 6:&amp;nbsp; Tally = 11&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Plot 9: Tally=12&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The Plot_Size is "0.02" so I need to multiply the Tally numbers by 50.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;11*50 + 11*50 + 12*50 = 1700&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I need to find the average of that new number&amp;nbsp; (there are 3 plot points in that stand)&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;1700/3 = 566.66 Trees per Acre per Stand&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 03:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboard-arcade-data-expression/m-p/1264828#M7445</guid>
      <dc:creator>M_M</dc:creator>
      <dc:date>2023-03-08T03:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Dashboard Arcade Data Expression</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboard-arcade-data-expression/m-p/1265111#M7454</link>
      <description>&lt;P&gt;Isn't it just a common calculation based on divisions of 100 i.e. 100/0.01, 100/0.02, 100/PlotSize ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 18:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcgis-dashboard-arcade-data-expression/m-p/1265111#M7454</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-03-07T18:44:45Z</dc:date>
    </item>
  </channel>
</rss>

