<?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: Return a GroupedBy result AND additional fields not in GroupedBy expression? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266556#M7472</link>
    <description>&lt;P&gt;You can kind of do this. By adding your extra fields to the "groupby fields" parameter, you'll get your data grouped per stand / user / date combination.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;GroupBy(
    your_featureset,
    ['Stand_number', 'username', 'date_field'],
    [{your statistic expressions}]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;To retain geometry, though, that can't be done unless you use a loop.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 17:49:22 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-03-10T17:49:22Z</dc:date>
    <item>
      <title>Return a GroupedBy result AND additional fields not in GroupedBy expression?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266526#M7470</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to add a table to my Dashboard containing a bunch of GroupedBy results.&amp;nbsp; However, I'd also like to have some fields in the table that are not currently in the GroupedBy expression.&amp;nbsp; I guess they could be added to the GroupedBy and still make sense, but I don't have a Statistic for them as it would be 'username' and 'date' etc., and I don't know how to write them into the grouped by without a statistic.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, once the table is added to Dashboard, is it possible to assign an Action to zoom to feature in map when a row is selected in the table?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data is being grouped by a polygon name (Stand#)&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The only thing I could come up with was mess with the Actions on the table and a Category Selector created to filter by Stand#.&amp;nbsp; Select row on table then go to filtered Category selector where it will zoom to map.&amp;nbsp; Not very efficient. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 17:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266526#M7470</guid>
      <dc:creator>M_M</dc:creator>
      <dc:date>2023-03-10T17:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Return a GroupedBy result AND additional fields not in GroupedBy expression?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266543#M7471</link>
      <description>&lt;P&gt;I don't believe you can have an expression where some fields are grouped and others are not. I know you can't do this in SQL. The underlying set theory doesn't make it possible. All fields have to be aggregated in some way. Since the Group By returns a single result per field, it doesn't make sense to then also have a field(s) that contain multiple values.&lt;/P&gt;&lt;P&gt;You can (potentially) perform aggregation on fields &lt;STRONG&gt;within&lt;/STRONG&gt; a record in the SELECT clause, e.g. averaging the sum of three numeric fields, and include other fields, but not &lt;STRONG&gt;across&lt;/STRONG&gt; records.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 17:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266543#M7471</guid>
      <dc:creator>ZenMasterZeke</dc:creator>
      <dc:date>2023-03-10T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Return a GroupedBy result AND additional fields not in GroupedBy expression?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266556#M7472</link>
      <description>&lt;P&gt;You can kind of do this. By adding your extra fields to the "groupby fields" parameter, you'll get your data grouped per stand / user / date combination.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;GroupBy(
    your_featureset,
    ['Stand_number', 'username', 'date_field'],
    [{your statistic expressions}]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;To retain geometry, though, that can't be done unless you use a loop.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 17:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/return-a-groupedby-result-and-additional-fields/m-p/1266556#M7472</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-03-10T17:49:22Z</dc:date>
    </item>
  </channel>
</rss>

