<?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: Need Help Writing an Arcade script for Expression for Serial Chart in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583336#M10733</link>
    <description>&lt;P&gt;Then layer that I'm trying to work with is a layer that is in a group layer or dataset. Would I plug in the ID of the group then try to limit it to the layer name?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 21:46:00 GMT</pubDate>
    <dc:creator>BrianHartz_Lumos</dc:creator>
    <dc:date>2025-02-07T21:46:00Z</dc:date>
    <item>
      <title>Need Help Writing an Arcade script for Expression for Serial Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583255#M10729</link>
      <description>&lt;P&gt;I'm working on developing a dashboard for high level people within our organization. Currently, we have a field (RoadCL_FT) that is a Double data type field. I need to write an Arcade script that will allow me to add 30% to all the records in that field. Any suggestions?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 19:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583255#M10729</guid>
      <dc:creator>BrianHartz_Lumos</dc:creator>
      <dc:date>2025-02-07T19:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Writing an Arcade script for Expression for Serial Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583276#M10730</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#groupby" target="_self"&gt;GroupBy&lt;/A&gt; function to add 30% to a field. Here's an example from the &lt;A href="https://developers.arcgis.com/arcade/playground/" target="_self"&gt;Playground&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124929i14A83FED17CEF5E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="code.png" alt="code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Fetches features from a public portal item
var fs = FeatureSetByPortalItem(
  Portal("https://www.arcgis.com"),
  // portal item id
  "6200db0b80de4341ae8ee2b62d606e67",
  0, // layer id
  ["*"], // fields to include
  true // include or exclude geometry
);

GroupBy(fs, 'BUILDINGID', [{ name: 'Base Elevation', expression: 'BASEELEV', statistic: 'MAX' },
  { name: 'New Base Elevation', expression: 'BASEELEV * 1.3', statistic: 'MAX' }])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 19:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583276#M10730</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-02-07T19:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Writing an Arcade script for Expression for Serial Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583279#M10731</link>
      <description>&lt;P&gt;Do I need to create a new field for the data to be populated in?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 20:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583279#M10731</guid>
      <dc:creator>BrianHartz_Lumos</dc:creator>
      <dc:date>2025-02-07T20:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Writing an Arcade script for Expression for Serial Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583281#M10732</link>
      <description>&lt;P&gt;No, you don't need to. The GroupBy function creates the new FeatureSet that you can use in your serial chart. In the code above, I added as the output both the original field and the calculated field with the 30% added, but just to compare the field. You could just include the calculated field without the original field.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 20:07:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583281#M10732</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-02-07T20:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Writing an Arcade script for Expression for Serial Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583336#M10733</link>
      <description>&lt;P&gt;Then layer that I'm trying to work with is a layer that is in a group layer or dataset. Would I plug in the ID of the group then try to limit it to the layer name?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 21:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583336#M10733</guid>
      <dc:creator>BrianHartz_Lumos</dc:creator>
      <dc:date>2025-02-07T21:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Writing an Arcade script for Expression for Serial Chart</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583621#M10738</link>
      <description>&lt;P&gt;I had to make a couple of adjustments to what you sent me, but it was what I needed to achieve the goal. Thank you for the assist!!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 15:14:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/need-help-writing-an-arcade-script-for-expression/m-p/1583621#M10738</guid>
      <dc:creator>BrianHartz_Lumos</dc:creator>
      <dc:date>2025-02-10T15:14:54Z</dc:date>
    </item>
  </channel>
</rss>

