<?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: In Dashboard List widget, return multiple field names via FeatureSet in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/in-dashboard-list-widget-return-multiple-field/m-p/1416516#M9514</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Distinct&lt;/STRONG&gt; can take a list of fields. Try&lt;/P&gt;&lt;PRE&gt;var proj_distinct = Distinct(just_active, ['project_name', 'field2', 'etc'])&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Apr 2024 14:37:13 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2024-04-29T14:37:13Z</dc:date>
    <item>
      <title>In Dashboard List widget, return multiple field names via FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/in-dashboard-list-widget-return-multiple-field/m-p/1416494#M9513</link>
      <description>&lt;P&gt;In a dashboard list, I'm using the following data expression to return distinct project names:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var projects = FeatureSetByPortalItem(Portal("&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;"), "ITEM_ID", 1, ['project_name','status','FIELD1','FIELD2'], false)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//filter records to show in output&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var status = 'Active' &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var just_active = Filter(projects, "status = '"+status+"'")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//return FeatureSet of distinct project names&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var proj_distinct = Distinct(just_active, ['project_name'])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return proj_distinct&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Right now, project_name is the only field that's available in the List widget:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rwrenner_abtglobal_0-1714399837163.png" style="width: 241px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102425i11C8F810AEAEE713/image-dimensions/241x225?v=v2" width="241" height="225" role="button" title="rwrenner_abtglobal_0-1714399837163.png" alt="rwrenner_abtglobal_0-1714399837163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to modify this expression such that it returns more field values, FIELD1 and FIELD2, as these need to be filtered on.&lt;/STRONG&gt; For a given project name, each of these other field values will match, meaning there would be only one value returned per field per project. How might I return more fields in the resulting FeatureSet?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 14:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/in-dashboard-list-widget-return-multiple-field/m-p/1416494#M9513</guid>
      <dc:creator>rwrenner_abtglobal</dc:creator>
      <dc:date>2024-04-29T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: In Dashboard List widget, return multiple field names via FeatureSet</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/in-dashboard-list-widget-return-multiple-field/m-p/1416516#M9514</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Distinct&lt;/STRONG&gt; can take a list of fields. Try&lt;/P&gt;&lt;PRE&gt;var proj_distinct = Distinct(just_active, ['project_name', 'field2', 'etc'])&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Apr 2024 14:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/in-dashboard-list-widget-return-multiple-field/m-p/1416516#M9514</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-04-29T14:37:13Z</dc:date>
    </item>
  </channel>
</rss>

