<?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: Dashboard version in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651339#M11432</link>
    <description>&lt;P&gt;I’ve been trying to run arcade through the create expression that pops up when you choose a List widget with the help of ChatGPT. I guess this is what I get for listening to ChatGPT saying there should be an add data button on the main page. It said it numerous times and was adamant about it being part of this. I know it exists in Experience Builder and took its word that it should exist in this version of Dashboards.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 06:05:29 GMT</pubDate>
    <dc:creator>BillKinkaid1966</dc:creator>
    <dc:date>2025-09-18T06:05:29Z</dc:date>
    <item>
      <title>Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1650997#M11427</link>
      <description>&lt;P&gt;We are currently running version 11.3 while working in portal. I’ve been trying to configure a data expression in Dashboards with no luck. It turns out I believe that although we are in 11.3 our setup is still using Classic Dashboards. The number one clue is that there is no ADD DATA icon. All I see in the left pane is the following in this exact order.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add element&lt;/LI&gt;&lt;LI&gt;View&lt;/LI&gt;&lt;LI&gt;Theme&lt;/LI&gt;&lt;LI&gt;Time and Region&lt;/LI&gt;&lt;LI&gt;Save&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Attached you will find a basic image of a new freshly created Dashboard showing there is no ADD DATA icon (DashboardScreenshot.png). Can someone possibly tell me how we can get the new version of Dashboards added to the App Launcher (9 dots)?&lt;/P&gt;&lt;P&gt;Thanks in advance for any help you can provide.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 13:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1650997#M11427</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-17T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1650999#M11428</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/926063"&gt;@BillKinkaid1966&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I for some reason am blanking at where I've ever seen this add data button you're mentioning. I loaded up my 11.3 Dashboard and AGOL Dashboard and the way to add data is through adding the element, and then adding the data source to the element, is that what you would want to do? What kind of data expression would you want to add?&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 13:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1650999#M11428</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-09-17T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651010#M11429</link>
      <description>&lt;P&gt;There is no "Add data" button on the left pane of the current AGOL Dashboard. It does have an "Analytics" button.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-09-17_10-04-57.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140520i9DC42A2CDCFF8F9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2025-09-17_10-04-57.PNG" alt="2025-09-17_10-04-57.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you thinking of Experience Builder or Web AppBuilder with their "Add Data" buttons?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 14:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651010#M11429</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-09-17T14:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651339#M11432</link>
      <description>&lt;P&gt;I’ve been trying to run arcade through the create expression that pops up when you choose a List widget with the help of ChatGPT. I guess this is what I get for listening to ChatGPT saying there should be an add data button on the main page. It said it numerous times and was adamant about it being part of this. I know it exists in Experience Builder and took its word that it should exist in this version of Dashboards.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 06:05:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651339#M11432</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-18T06:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651341#M11433</link>
      <description>&lt;P&gt;So I won’t enter the same text twice, please see the reply above. It explains why I assumed there is supposed to be an add data button on Dashboards.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 06:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651341#M11433</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-18T06:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651384#M11435</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/926063"&gt;@BillKinkaid1966&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No worries at all! Sometimes the AIs can hallucinate or start attempting to interpret what they have unusually! With the New Expression button on the list widget you'll be able to create and load the arcade straight into there, it'll let you configure your list and other items through there!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 11:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651384#M11435</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-09-18T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651448#M11437</link>
      <description>&lt;P&gt;What’s funny is that’s what I was initially trying to do, but I can’t seem to get the arcade script correct for just calling the featureset that I want to use. The arcade expression keeps throwing an error that it doesn’t recognize it and I’m using the basic arcade script you can find on Esri. So that that’s what led me to using AI. Unfortunately I’m still back at square one.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 13:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651448#M11437</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-18T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651467#M11438</link>
      <description>&lt;P&gt;Can you &lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633#U1007633" target="_self"&gt;post&lt;/A&gt; your code?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 14:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1651467#M11438</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-09-18T14:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652141#M11441</link>
      <description>&lt;P&gt;Yes, I will go ahead and post it and give an explanation of exactly what I’m trying to do. I will post it later today because I need to make sure the arcade is scrubbed, but still contains the steps we are trying to accomplish. Unfortunately I will not be able to provide a test data set due to the confidentiality of the work I am performing.&lt;/P&gt;&lt;P&gt;Hopefully the arcade I’m providing that I’m using inside the “Select a Layer” step for adding a List widget will be enough to determine why it isn’t executing. FYI, I do not get any of the red error rectangles in the scrollbar while adding the Arcade script in the expression editor. What happens is once I save it in the “Select a Layer” dialogue there is a black error triangle next to it (It’s actually to the left of the edit button (pencil icon)). When I hover over that black triangle it shows a message stating it can’t be used as the layer.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 15:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652141#M11441</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-22T15:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652411#M11443</link>
      <description>&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;I’m including the script in the body of this message below that I’m trying to use inside the Select a Layer dialog create an expression when you add a List widget. A quick note. Here’s what it’s trying to do. We have a T4PERMIT field. It groups all T4PERMIT field numbers together. Then under T4PERMIT it groups by a field called COMMODITY1. Then under that it groups by OD and sums all of the Length_Miles for those grouped OD records. Keep in mind in the example below this text there are no line spaces between any of the rows below the specific T4PERMIT. But when it starts a new T4PERMIT there will be a line space between the previous T4PERMIT block of data and the new one. So what should appear in the List widget should look similar to this example I’ve provided:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T4 Permit: 999999&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Commodity: Gas&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OD: 10.5 - Mileage: 14.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OD:12.5 - Mileage: 7.32&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Commodity: Crude&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OD:10.5 - Mileage: 9.63&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T4 Permit: 999998&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Commodity: Gas&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OD: 6.625 - Mileage: 3.21&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OD: 8.625 - Mileage: 1.01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking a look!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// ==============================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// T4PERMIT Hierarchical List Widget Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Each T4PERMIT is a separate row with commodities and ODs&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Bold labels, indentation, summed mileage&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// ==============================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Portal URL&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var portalURL = &lt;A href="https://gis./" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;https://gis.&lt;/SPAN&gt;&lt;/A&gt;(COMPANY_NAME).com/portal&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Feature Layer ItemID&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var layerItemID = "***********(ITEM ID)************”;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Layer index (usually 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var layerIndex = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Fields to include&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var fields = ["T4PERMIT", "COMMODITY1", "OD", "Length_Miles"];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Get FeatureSet from portal item&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var fs = FeatureSetByPortalItem(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Portal(portalURL),&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerItemID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerIndex,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fields,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; false&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Group by T4PERMIT → COMMODITY1 → OD&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Mileage aggregation uses the numeric field directly&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var grouped = GroupBy(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fs,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ["T4PERMIT", "COMMODITY1", "OD"],&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "TotalMileage",&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression: "Length_Miles",&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistic: "SUM"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Build hierarchical text for each T4PERMIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var finalResults = [];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;for (var permit in Distinct(grouped, "T4PERMIT")) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var permitVal = permit["T4PERMIT"];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var permitGroup = Filter(grouped, "T4PERMIT = @permitVal");&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var textBlock = "&amp;lt;b&amp;gt;T4 Permit:&amp;lt;/b&amp;gt; " + permitVal + "&amp;lt;br&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var comm in Distinct(permitGroup, "COMMODITY1")) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var commVal = comm["COMMODITY1"];&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textBlock += "&amp;amp;emsp;• &amp;lt;b&amp;gt;Commodity:&amp;lt;/b&amp;gt; " + commVal + "&amp;lt;br&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var commGroup = Filter(permitGroup, "COMMODITY1 = @commVal");&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var row in commGroup) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textBlock += "&amp;amp;emsp;&amp;amp;emsp;◦ &amp;lt;b&amp;gt;OD:&amp;lt;/b&amp;gt; " + row["OD"] + " – &amp;lt;b&amp;gt;Mileage:&amp;lt;/b&amp;gt; " + Round(row["TotalMileage"], 2) + "&amp;lt;br&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Push(finalResults, textBlock);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;// Return the array of strings — each T4PERMIT is a separate row in List widget&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;return finalResults;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 13:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652411#M11443</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-23T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652492#M11446</link>
      <description>&lt;P&gt;When posting code, please use the &lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633#U1007633" target="_self"&gt;"Insert/edit code sample"&lt;/A&gt; button. It's easier to read and copy the code.&lt;/P&gt;&lt;P&gt;A data expression must return a FeatureSet. Your code just returns an array of text strings.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Portal URL
var portalURL = "https://gis.(COMPANY_NAME).com/portal";

// Feature Layer ItemID
var layerItemID = "itemID";

// Layer index (usually 0)
var layerIndex = 0;

// Fields to include
var fields = ["T4PERMIT", "COMMODITY1", "OD", "Length_Miles"];

// Get FeatureSet from portal item
var fs = FeatureSetByPortalItem(
  Portal(portalURL),
  layerItemID,
  layerIndex,
  fields,
  false
);

var grouped = GroupBy(
  fs,
  ["T4PERMIT", "COMMODITY1", "OD"],
  [{ name: "TotalMileage", expression: "Length_Miles", statistic: "SUM" }]
);
var finalResults = [];

for (var permit in Distinct(grouped, "T4PERMIT")) {
  var permitVal = permit["T4PERMIT"];
  var permitGroup = Filter(grouped, "T4PERMIT = @permitVal");
  var textBlock = "&amp;lt;b&amp;gt;T4 Permit:&amp;lt;/b&amp;gt; " + permitVal + "&amp;lt;br&amp;gt;";

  for (var comm in Distinct(permitGroup, "COMMODITY1")) {
    var commVal = comm["COMMODITY1"];
    textBlock += "&amp;amp;emsp;• &amp;lt;b&amp;gt;Commodity:&amp;lt;/b&amp;gt; " + commVal + "&amp;lt;br&amp;gt;";
    var commGroup = Filter(permitGroup, "COMMODITY1 = @commVal");
    for (var row in commGroup) {
      textBlock += "&amp;amp;emsp;&amp;amp;emsp;◦ &amp;lt;b&amp;gt;OD:&amp;lt;/b&amp;gt; " +
      row["OD"] +
      " – &amp;lt;b&amp;gt;Mileage:&amp;lt;/b&amp;gt; " +
      Round(row["TotalMileage"], 2) +
      "&amp;lt;br&amp;gt;";
    }
  }
  Push(finalResults, { attributes: { Permits: textBlock } });
}
return FeatureSet(
  {
    fields: [{ name: "Permits", type: "esriFieldTypeString" }],
    features: finalResults
  }
);&lt;/LI-CODE&gt;&lt;P&gt;Using my test data, the code produces this list&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-09-23_11-37-37.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140816i4A38E02BAB9962BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2025-09-23_11-37-37.PNG" alt="2025-09-23_11-37-37.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 15:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652492#M11446</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-09-23T15:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652627#M11448</link>
      <description>&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;Thanks for the tip on the copying the code. I will definitely do that in the future. Also thank you for the quick reply. I’m out of the office today, but I will try this first thing in the morning and post back to you the results.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652627#M11448</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-23T20:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652800#M11450</link>
      <description>&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;Would you know the possible reason I’m still getting the black error triangle under the Select a layer option (Data expressions —&amp;gt; New data expression) of my List widget? I changed the portal URL and the item ID, but yet it still shows that black triangle with the exclamation mark in the center of it. I feel like I’m missing something. Because it worked perfectly on the data you created.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 14:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652800#M11450</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-24T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652816#M11451</link>
      <description>&lt;P&gt;First, check all the field names. I may have overlooked changing one back to your schema.&lt;/P&gt;&lt;P&gt;Click the Run button in the Arcade editor to see if it's returning a FeatureSet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-09-24_10-49-55.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140878i069871E93DC1A756/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2025-09-24_10-49-55.PNG" alt="2025-09-24_10-49-55.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Add some &lt;A href="https://developers.arcgis.com/arcade/function-reference/debugging_functions/#console" target="_self"&gt;Console&lt;/A&gt; messages to see what the code is doing a various intervals. This should help you figure out what's going wrong.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-09-24_10-52-51.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140879i44334D1CF7DC2F63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2025-09-24_10-52-51.PNG" alt="2025-09-24_10-52-51.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 14:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652816#M11451</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-09-24T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652820#M11453</link>
      <description>&lt;P&gt;This is great info. I will definitely do that and I’ll post later on what the outcome was. I can’t tell you how much I appreciate all of the assistance and knowledge you’ve provided.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 15:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1652820#M11453</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-09-24T15:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard version</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1654464#M11487</link>
      <description>&lt;P&gt;Hey Ken, sorry for the long delay. It’s been a process of trial and error, but for the most part your solution is the one that I’m going to choose as the correct answer. It took a little bit of tweaking on my side with field names and dealing with null values it was trying to sort. But I finally got the script to run. Now my only issue is when I save the expression and go back to that main list widget page where you choose your source I am still getting a black triangle error, but I will attempt to remediate that next week. Thanks for all of your help and expertise on this. It is greatly appreciated!!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 13:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-version/m-p/1654464#M11487</guid>
      <dc:creator>BillKinkaid1966</dc:creator>
      <dc:date>2025-10-01T13:28:38Z</dc:date>
    </item>
  </channel>
</rss>

