<?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 Calculating Feature Count of attribute type using arcade in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/calculating-feature-count-of-attribute-type-using/m-p/1191700#M6543</link>
    <description>&lt;P&gt;I would like to create a table using a feature layer like below to show total number of collisions occured on Street #1 and Street #2. Furthermore, I would like to color code the table according to their Highest Damage field. For example; if any of the street1# fields have "4 - Severe" as a highest damage that line in the table would be red, otherwise it will be colored according to the highest level of damage.&lt;/P&gt;&lt;TABLE border="1" width="98.29830137910278%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street Name&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Number of Collision&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Highest Damage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4 - Severe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 - Moderate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;6&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 - Minor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;7&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 - Moderate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street2#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;5&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;3 - Major&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street2#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;20&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2- Minor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street2#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;3 - Major&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like to have something similar to table below.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Street Name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Count of the Total Collision&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF0000"&gt;Street1#&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF0000"&gt;36&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF9900"&gt;Street2#&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF9900"&gt;50&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list element in arcgis dashboard does not have the group values settings but I can colored code them using arcade (when logical function). On the other hand, the table element has the group values settings but if I group them by street name I could calculate the sum of the number of collision but I could not color code them by highest damage. So how could I merge this to things together?&lt;/P&gt;&lt;P&gt;Is it possible to achieve this by advanced formatting in Arcade?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help ideas, code examples would be appreciated. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 20:52:13 GMT</pubDate>
    <dc:creator>EUngun</dc:creator>
    <dc:date>2022-07-12T20:52:13Z</dc:date>
    <item>
      <title>Calculating Feature Count of attribute type using arcade</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/calculating-feature-count-of-attribute-type-using/m-p/1191700#M6543</link>
      <description>&lt;P&gt;I would like to create a table using a feature layer like below to show total number of collisions occured on Street #1 and Street #2. Furthermore, I would like to color code the table according to their Highest Damage field. For example; if any of the street1# fields have "4 - Severe" as a highest damage that line in the table would be red, otherwise it will be colored according to the highest level of damage.&lt;/P&gt;&lt;TABLE border="1" width="98.29830137910278%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street Name&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Number of Collision&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Highest Damage&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4 - Severe&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 - Moderate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;6&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 - Minor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street1#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;7&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2 - Moderate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street2#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;5&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;3 - Major&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street2#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;20&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2- Minor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Street2#&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;3 - Major&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I would like to have something similar to table below.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Street Name&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;Count of the Total Collision&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF0000"&gt;Street1#&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF0000"&gt;36&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF9900"&gt;Street2#&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&lt;FONT color="#FF9900"&gt;50&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list element in arcgis dashboard does not have the group values settings but I can colored code them using arcade (when logical function). On the other hand, the table element has the group values settings but if I group them by street name I could calculate the sum of the number of collision but I could not color code them by highest damage. So how could I merge this to things together?&lt;/P&gt;&lt;P&gt;Is it possible to achieve this by advanced formatting in Arcade?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help ideas, code examples would be appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 20:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/calculating-feature-count-of-attribute-type-using/m-p/1191700#M6543</guid>
      <dc:creator>EUngun</dc:creator>
      <dc:date>2022-07-12T20:52:13Z</dc:date>
    </item>
  </channel>
</rss>

