<?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: Need Help With Arcade Sum() Expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164619#M7461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Levi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the result you want, you want to use Table&amp;nbsp;Statistic dynamic text instead of Table Attribute. This type of dynamic text allows you to pick a field within your data to calculate a statistic on. You can refine the calculation to use All Rows, Visible Rows, Map Series Rows, or a Custom SQL query.&amp;nbsp;You can then add additional static text to your text element, instead of using Concatenate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This help topic&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/layouts/add-dynamic-text.htm" title="http://pro.arcgis.com/en/pro-app/help/layouts/add-dynamic-text.htm"&gt;Add dynamic text—Layouts | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;has some more information on Table Statistic and Table Attribute dynamic text types and when to use each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aubrianna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2019 22:09:04 GMT</pubDate>
    <dc:creator>AubriOtis</dc:creator>
    <dc:date>2019-01-16T22:09:04Z</dc:date>
    <item>
      <title>Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164614#M7456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to Arcade. I'm trying to summarize square footage for rooms of a certain classification (containing the prefix 'CR_') in a Map Series using dynamic text. The expression builder says my Arcade expression is valid, but nothing is being printed to the dynamic text box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433477_arcade.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164614#M7456</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2019-01-16T19:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164615#M7457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Levi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you'll need to rework the return line.&amp;nbsp; The sum should be an element in the array, not the second parameter in concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate( [ "Total: ", Sum(sqft) ] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or cast the sum to text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate( [ "Total: ", Text(Sum(sqft)) ] )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does your&amp;nbsp;UsableArea field contain a list of values that you're summing?&amp;nbsp; or are you trying to do something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164615#M7457</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2019-01-16T21:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164616#M7458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm trying to create a single sum for all features that contain the text prefix 'CR_'. I've been reading that Arcade can't be used on multiple records??? What is the point? I could accomplish this in seconds in Python, but I can only use Arcade expressions for Dynamic text in a Map Series.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164616#M7458</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2019-01-16T21:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164617#M7459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do that you need access to FeatureSet to loop through features.&amp;nbsp; The dynamic text expressions are part of the Visualization profile and don't have access to this functionality.&amp;nbsp; There is another way to do what you're looking for through dynamic text.&amp;nbsp; I've spoken with a colleague and she'll be here shortly to take you through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164617#M7459</guid>
      <dc:creator>WendyHarrison</dc:creator>
      <dc:date>2019-01-16T21:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164618#M7460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164618#M7460</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2019-01-16T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164619#M7461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Levi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the result you want, you want to use Table&amp;nbsp;Statistic dynamic text instead of Table Attribute. This type of dynamic text allows you to pick a field within your data to calculate a statistic on. You can refine the calculation to use All Rows, Visible Rows, Map Series Rows, or a Custom SQL query.&amp;nbsp;You can then add additional static text to your text element, instead of using Concatenate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This help topic&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/layouts/add-dynamic-text.htm" title="http://pro.arcgis.com/en/pro-app/help/layouts/add-dynamic-text.htm"&gt;Add dynamic text—Layouts | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;has some more information on Table Statistic and Table Attribute dynamic text types and when to use each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aubrianna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 22:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164619#M7461</guid>
      <dc:creator>AubriOtis</dc:creator>
      <dc:date>2019-01-16T22:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164620#M7462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was the first approach I tried, but I just figured out what&amp;nbsp;the problem was. I needed a definition query on the layer itself that filters out rooms that don't meet the criteria. Then I can have table statistic&amp;nbsp;dynamic text that sums just those values.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 23:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164620#M7462</guid>
      <dc:creator>deleted-user-1_r2dgYuILKY</dc:creator>
      <dc:date>2019-01-16T23:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164621#M7463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&amp;nbsp; would first you the Filter function to get the list of records that start with CR_ and then apply the sum to that list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 12:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/164621#M7463</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-01-17T12:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help With Arcade Sum() Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/1240268#M63312</link>
      <description>&lt;P&gt;Is it possible to create a query that performs a calculation and then produces the sum of that calculation? In my map layout I would like to display the total length of roads driven for "Red Route" but in order to calculate the total length I first need to multiply the length field by the number of lanes that exist for each road (without storing this in the attribute table). Currently I have been able to display the total by number of lanes (dynamic text: table statistics):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SHartholt_2-1670937981253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58374i6BBCDA720C2E5C7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SHartholt_2-1670937981253.png" alt="SHartholt_2-1670937981253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or the lane distance for each feature (dynamic text: table attribute):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SHartholt_0-1670937343873.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58372i71A7FA0A68A1BC69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SHartholt_0-1670937343873.png" alt="SHartholt_0-1670937343873.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but I can't seem to produce the grand total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 13:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-with-arcade-sum-expression/m-p/1240268#M63312</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-12-13T13:26:43Z</dc:date>
    </item>
  </channel>
</rss>

