<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>sum a values in a column</title><link>https://community.appian.com/discussions/f/user-interface/30478/sum-a-values-in-a-column</link><description>I want to get the sum of values from a column in the expression editor and I want to use that expression object in an interface to show my Sum which I calculated.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: sum a values in a column</title><link>https://community.appian.com/thread/121484?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 05:44:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dc691766-0910-49c8-92e7-e76aeb877a87</guid><dc:creator>vijayp6380</dc:creator><description>&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;This is working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sum a values in a column</title><link>https://community.appian.com/thread/121318?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 12:27:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1be5ea6a-6f6b-4d9e-8cf4-9c71ef99ff05</guid><dc:creator>vikashk7323</dc:creator><description>&lt;p&gt;You can query the data for the column from the database and then you use the sum() for addition.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1699014385831v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In the above, for a Order Line Item record, the data is queried for a column and then addition has been done&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sum a values in a column</title><link>https://community.appian.com/thread/121098?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 07:20:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:873687ee-d67d-4555-ad3c-c87eb696ef7a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I am not really sure what you are looking for. But to calculate the sum of all values of a field in a list of records have a look at this code snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!test1: {
    {
      item: &amp;quot;stapler&amp;quot;,
      name: &amp;quot;Mike&amp;quot;,
      countryId: 1
    },
    {
      item: &amp;quot;printer&amp;quot;,
      name: &amp;quot;Larrys&amp;quot;,
      countryId: 2
    },
    {
      item: &amp;quot;printer&amp;quot;,
      name: &amp;quot;Larry&amp;quot;,
      countryId: 2
    },
    {
      item: &amp;quot;laptop&amp;quot;,
      name: &amp;quot;Mike&amp;quot;,
      countryId: 1
    },
    {
      item: &amp;quot;glass&amp;quot;,
      name: &amp;quot;Mike&amp;quot;,
      countryId: 3
    }
  },


  sum(local!test1.countryId)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>