<?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>How to add sum of values of the columns in a grid</title><link>https://community.appian.com/discussions/f/user-interface/21911/how-to-add-sum-of-values-of-the-columns-in-a-grid</link><description>Hi, I could not find any docs satisfying my requirement .Can anyone help me in designing a grid as below. 
 
 
 
 Name 
 textbox1 
 textbox2 
 textbox3 
 
 
 PersonA 
 10 
 1 
 100 
 
 
 PersonB 
 20 
 2 
 100 
 
 
 TOTAL 
 30 
 3 
 200 
 
 
 
 
 User</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136620?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 11:54:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08dda934-77be-45a0-8ba5-88ccf0a8d1a0</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;Thanks, i am able to acheive the output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136608?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 10:05:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0605d7d-0663-458d-9cb8-3c77abaebff3</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;You mean whatever filter user applies, that i have to store into some local variable. If yes, then how to acheive that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136569?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:24:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4be1d2e3-e6c6-4f76-9045-b532045e6c27</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;No, that won&amp;#39;t be possible.&amp;nbsp; You will need to use the &amp;quot;classic&amp;quot; pattern wherein you first query the data for the current page of the grid into a local variable (as a datasubset), then populate the grid using that.&amp;nbsp; In this way you&amp;#39;d be able to manipulate the result of your query to always append a &amp;quot;final&amp;quot; row of data that contains the calculation based on the sum of the queried (filtered/etc) rows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136568?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:14:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9af920ac-ad98-4e83-8446-8d70c5a1e856</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;&lt;span&gt;I was thinking of storing the value returned from a!gridField into some var&amp;nbsp; (means whatever value is being returned when user applies xyz filter would be displaying in that grid and the data stored in grid can help me acheive the same, but i didnt find any parameter in a!gridField&amp;nbsp;through which i can do this.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136567?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:13:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:581373bd-5d88-48e1-aa7a-4160cbb1d336</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;I am thinking to use that data populated in grid and then doing that calculation but what you are saying is opposite&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136566?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:10:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af990487-230e-44e5-9663-48bc30ebee41</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="265396" url="~/discussions/f/user-interface/21911/how-to-add-sum-of-values-of-the-columns-in-a-grid/136564"] i have an interface where there are multiple filters, when user applies filters lets suppose it applies on two fields, then what ever rows are returned in non -editable grid, then i have to show the sum of one column[/quote]
&lt;p&gt;Yes, I understand, since that&amp;#39;s pretty much what you already said before.&lt;/p&gt;
&lt;p&gt;My same 2 questions still apply: what have you tried already, and what specific difficulties are you having (if any)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136565?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:09:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b164f1e-32d6-454c-bc84-605356b7eebc</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;I was thinking of storing the value returned from a!gridField into some var&amp;nbsp; (means whatever value is being returned when user applies xyz filter would be displaying in that grid and the data stored in grid can help me acheive the same, but i didnt find any parameter in a!gridField&amp;nbsp;through which i can do this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136564?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:06:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1fcd24d9-d47b-484c-8256-39118a32bb23</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;So the requirement is i have an interface where there are multiple filters, when user applies filters lets suppose it applies on two fields, then what ever rows are returned in non -editable grid, then i have to show the sum of one column values in some field&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136563?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 16:04:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:905ad800-549b-4a6d-af9a-30b51fbab14a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This should be doable.&amp;nbsp; Generally speaking this is a use case where you should be querying the data in advance into a local variable, then using that to populate the grid.&lt;/p&gt;
&lt;p&gt;What have you tried already?&amp;nbsp; Are you having any specific difficulties?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/136562?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 15:58:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6208724e-dacd-469f-b56a-136403e33480</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;My requirement is i have to do sum of values returned when user applies filter in non -editable grid. For example, grid has mileage column, when user applies filter then if&amp;nbsp; rows are returned then i have to display sum of mileage returned from three rows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/85836?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 07:20:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4bb4bf44-4b80-447f-b583-de92639b5198</guid><dc:creator>nitesht9652</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If are looking for examples to display some dynamically in the last row, i would suggest to look for Interface template REQUEST FORM example.(New Interface &amp;gt; Design Mode &amp;gt; Select Template.&lt;/p&gt;
&lt;p&gt;It has an editable grid which looks like would fit your use case.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/Screenshot-2021_2D00_09_2D00_17-at-08.11.12.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add sum of values of the columns in a grid</title><link>https://community.appian.com/thread/85834?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 06:12:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf2fb5e9-c64f-4598-8d7e-7f2a655cdc52</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Following the patterns here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/Editable_Grid_Component.html#examples"&gt;https://docs.appian.com/suite/help/21.3/Editable_Grid_Component.html#examples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You simply add a last row showing the required components and values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>