<?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 GROUPED DISPLAY IN BAR CHART in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576321#M10665</link>
    <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;&lt;P&gt;I have configured a dashboard where one of the elements is a bar chart of count of application status. Please see screenshot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jantolihao_0-1737023976461.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123463i804489459A553818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jantolihao_0-1737023976461.png" alt="jantolihao_0-1737023976461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I want to group these statuses to only 3 groups: Active, Approved, and Released in the DASHBOARD LEVEL. Please see screenshot of preferred output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jantolihao_1-1737024432799.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123464iE6E58D8FB5883F78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jantolihao_1-1737024432799.png" alt="jantolihao_1-1737024432799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Although, I understand that adding another field for Status Group (where values are only Active, Approved, and Released) can solve this concern, but this solution is NOT an option since we are not allowed to add another field since the data is not ours and can only consume the layer view (non-hosted).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this using expression? I appreciate any hints on this. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 10:50:03 GMT</pubDate>
    <dc:creator>jantolihao</dc:creator>
    <dc:date>2025-01-16T10:50:03Z</dc:date>
    <item>
      <title>GROUPED DISPLAY IN BAR CHART</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576321#M10665</link>
      <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;&lt;P&gt;I have configured a dashboard where one of the elements is a bar chart of count of application status. Please see screenshot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jantolihao_0-1737023976461.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123463i804489459A553818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jantolihao_0-1737023976461.png" alt="jantolihao_0-1737023976461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I want to group these statuses to only 3 groups: Active, Approved, and Released in the DASHBOARD LEVEL. Please see screenshot of preferred output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jantolihao_1-1737024432799.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123464iE6E58D8FB5883F78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jantolihao_1-1737024432799.png" alt="jantolihao_1-1737024432799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Although, I understand that adding another field for Status Group (where values are only Active, Approved, and Released) can solve this concern, but this solution is NOT an option since we are not allowed to add another field since the data is not ours and can only consume the layer view (non-hosted).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this using expression? I appreciate any hints on this. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 10:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576321#M10665</guid>
      <dc:creator>jantolihao</dc:creator>
      <dc:date>2025-01-16T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: GROUPED DISPLAY IN BAR CHART</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576350#M10666</link>
      <description>&lt;P&gt;Apply a Filter to your Bar Chart, and you should be able to just pull through the&amp;nbsp; Status that you want to include.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 13:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576350#M10666</guid>
      <dc:creator>DfIRivers</dc:creator>
      <dc:date>2025-01-16T13:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: GROUPED DISPLAY IN BAR CHART</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576393#M10667</link>
      <description>&lt;P&gt;In a Data Expression, 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 with a case expression in the SQL statement to return a FeatureSet with a calculated field. It would look something like this (not knowing how you want the original statues reclassified)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByPortalItem(
  Portal("your portal"),
  "itemID",
  0,
  ["Status"],
  false
);

var sql_statement = `CASE
WHEN STATUS = 'PENDING' OR STATUS = 'FINAL-PROCESS' THEN 'Active'
WHEN STATUS = 'FINAL-APPROVED' OR STATUS = 'PRELIMINARY-APPROVED' THEN 'Approved'
WHEN STATUS = 'SUCCESS' THEN 'Release'
ELSE 'Other'
END`

GroupBy(
  fs,
  { name: "Status", expression: sql_statement, statistic: "COUNT" },
  { name: "Total", expression: "1", statistic: "COUNT" }
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 14:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576393#M10667</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-01-16T14:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: GROUPED DISPLAY IN BAR CHART</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576720#M10673</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Thank you very much for this data expression. I was able to apply it on my dashboard.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jantolihao_0-1737088139646.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123529iDC7EF794AD72531A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jantolihao_0-1737088139646.png" alt="jantolihao_0-1737088139646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I am having difficulty in adding my category selectors. I need to filter this bar chart by Application No. and Person Applied. Did you happen to encounter something like this before?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 04:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576720#M10673</guid>
      <dc:creator>jantolihao</dc:creator>
      <dc:date>2025-01-17T04:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: GROUPED DISPLAY IN BAR CHART</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576776#M10674</link>
      <description>&lt;P&gt;Don't forget to click the "Accept as Solution" button on the post.&lt;/P&gt;&lt;P&gt;Have you added those fields to the FeatureSetByPortalItem and the GroupBy functions?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 14:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/grouped-display-in-bar-chart/m-p/1576776#M10674</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-01-17T14:39:20Z</dc:date>
    </item>
  </channel>
</rss>

