<?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: GroupBy returns Domain Codes - how to get Domain Names? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/groupby-returns-domain-codes-how-to-get-domain/m-p/1230071#M48791</link>
    <description>&lt;P&gt;Thanks for the code, it worked great for me.&amp;nbsp; I was not able to figure out how to get the domain names either but I did find in the dashboard editor (under slices for pie chart) that you could change the label for the categories manually.&amp;nbsp; Hope that helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboard Chart.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55631i001E1487B3AED822/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboard Chart.PNG" alt="Dashboard Chart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 17:02:44 GMT</pubDate>
    <dc:creator>HMarcks</dc:creator>
    <dc:date>2022-11-09T17:02:44Z</dc:date>
    <item>
      <title>GroupBy returns Domain Codes - how to get Domain Names?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/groupby-returns-domain-codes-how-to-get-domain/m-p/1136101#M43884</link>
      <description>&lt;P&gt;Data Expressions for Dashboard's List widget is a joy!&lt;/P&gt;&lt;P&gt;The following code works well but only returns Domain Codes.&lt;/P&gt;&lt;P&gt;Can&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#808080"&gt;DomainName($feature, 'Trap_Region')&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;somehow be used to get Domain Names?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;var portal = Portal('https://www.arcgis.com/');
var fs = FeatureSetByPortalItem( 
    portal, 'XXXXXXXXXXXXXXXXXXXXXXX', 
    1, 
    ['Trap_ID','Trap_Region'], 
    false
);

// Trap count grouped by trap region
var fs_gp = GroupBy(fs, ['Trap_Region'], [{name: 'Total_Traps', expression: 'Trap_ID', statistic: 'COUNT' }]);

return fs_gp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/groupby-returns-domain-codes-how-to-get-domain/m-p/1136101#M43884</guid>
      <dc:creator>Wolfgang_Grunberg_AZ_DFFM</dc:creator>
      <dc:date>2022-01-22T00:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: GroupBy returns Domain Codes - how to get Domain Names?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/groupby-returns-domain-codes-how-to-get-domain/m-p/1230071#M48791</link>
      <description>&lt;P&gt;Thanks for the code, it worked great for me.&amp;nbsp; I was not able to figure out how to get the domain names either but I did find in the dashboard editor (under slices for pie chart) that you could change the label for the categories manually.&amp;nbsp; Hope that helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dashboard Chart.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55631i001E1487B3AED822/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dashboard Chart.PNG" alt="Dashboard Chart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/groupby-returns-domain-codes-how-to-get-domain/m-p/1230071#M48791</guid>
      <dc:creator>HMarcks</dc:creator>
      <dc:date>2022-11-09T17:02:44Z</dc:date>
    </item>
  </channel>
</rss>

