<?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 Using Custom Data Expressions Within a Serial Chart to Sum Integer Fields? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/using-custom-data-expressions-within-a-serial/m-p/1267978#M7486</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building a Dashboard containing a serial chart which displays multiple bird species and the counts of males, females, young, and unknown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_1-1678884161491.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65315i5F958E848F6B6580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaveK_1-1678884161491.png" alt="DaveK_1-1678884161491.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_3-1678884253578.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65317i301FEDAB4CA71EC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaveK_3-1678884253578.png" alt="DaveK_3-1678884253578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to sum the number of bird fields for each row into a new field (totalCount) using a data expression. Can anyone help me put together an expression that will do that? Here's where I ended up with my own expression that doesn't work.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;var portal = Portal('&lt;A href="https://www.arcgis.com/" target="_blank"&gt;https://www.arcgis.com/&lt;/A&gt;');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;var fs = FeatureSetByPortalItem(portal, 'HidingthefeatureID',0,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;['uplandBird','adultMales','adultFemales','young','unknown'],false);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;var totalcount = { &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 'fields': [{'name':'sumtotal', 'type':'esriFieldTypeDouble'}], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 'geometryType': '', &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 'features': &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; [{'attributes': &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{'sumtotal': (fs,'adultMales'+fs,'adultFemales'+fs,'young'+fs,'unknown')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}}]}; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;return FeatureSet(Double(totalcount));&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help is appreciated.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Mar 2023 12:45:24 GMT</pubDate>
    <dc:creator>DaveK</dc:creator>
    <dc:date>2023-03-15T12:45:24Z</dc:date>
    <item>
      <title>Using Custom Data Expressions Within a Serial Chart to Sum Integer Fields?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/using-custom-data-expressions-within-a-serial/m-p/1267978#M7486</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building a Dashboard containing a serial chart which displays multiple bird species and the counts of males, females, young, and unknown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_1-1678884161491.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65315i5F958E848F6B6580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaveK_1-1678884161491.png" alt="DaveK_1-1678884161491.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaveK_3-1678884253578.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65317i301FEDAB4CA71EC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaveK_3-1678884253578.png" alt="DaveK_3-1678884253578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to sum the number of bird fields for each row into a new field (totalCount) using a data expression. Can anyone help me put together an expression that will do that? Here's where I ended up with my own expression that doesn't work.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;var portal = Portal('&lt;A href="https://www.arcgis.com/" target="_blank"&gt;https://www.arcgis.com/&lt;/A&gt;');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;var fs = FeatureSetByPortalItem(portal, 'HidingthefeatureID',0,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;['uplandBird','adultMales','adultFemales','young','unknown'],false);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;var totalcount = { &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 'fields': [{'name':'sumtotal', 'type':'esriFieldTypeDouble'}], &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 'geometryType': '', &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 'features': &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; [{'attributes': &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{'sumtotal': (fs,'adultMales'+fs,'adultFemales'+fs,'young'+fs,'unknown')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}}]}; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;return FeatureSet(Double(totalcount));&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any help is appreciated.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/using-custom-data-expressions-within-a-serial/m-p/1267978#M7486</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2023-03-15T12:45:24Z</dc:date>
    </item>
  </channel>
</rss>

