# Adding Table Column Values

**URL:** <https://forums.knack.com/t/adding-table-column-values/14268>\
**Category:** Get Answers\
**Created:** [May 16, 2023, 6:26pm UTC](https://forums.knack.com/t/adding-table-column-values/14268 "2023-05-16T18:26:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jon1](https://forums.knack.com/u/Jon1)\
**Post date:** [May 16, 2023, 6:26pm UTC](https://forums.knack.com/t/adding-table-column-values/14268/1 "2023-05-16T18:26:57Z")

</div>

Looking for a solution to add the values in a particular field in a table. I know how to make this work in a page view using column summaries under settings but I would like to this to be done a particular table or connection in the “background” and NOT on a page view.

Example of what I need: If a table has 100 records and each record has a value in field\_5 of “3”, the column total for field\_5 would be “300”. But if the value in one of the records in field\_5 is changed to “10” the column total for field\_5 would now be “307” (99_3, 1_10). This would be similar to the way you add a particular column in Excel (example: =sum(A1:A100)).

Unfortunately for me, it is more complex than a simple Excel formula, thus the request for help.

Thank you in advanced… JON

---

<div class="post-metadata">

**Author:** ![StephenChapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/stephenchapman/32/1759_2.png) [@StephenChapman](https://forums.knack.com/u/StephenChapman)\
**Post date:** [May 16, 2023, 10:07pm UTC](https://forums.knack.com/t/adding-table-column-values/14268/2 "2023-05-16T22:07:43Z")

</div>

Hi @Jon1, if you don’t want to use the column summaries, you can use the Sum field on a connected object.  
In the below example, we have the Counts table with Quantity, Date, and a Connection field. Each time a Quantity is submitted, you should have a record rule that ties it to one particular record in the Parent table (in my example, the ‘All counts’ record).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/8/811c329761c7ad0f86287db267af3a2917724ccc.png)

Separately, I have a Parent table, which has a Name and Sum field.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/d/da64bf63629171c6dca16b1b1eaf6d3d9fa41d90.png)

The Sum field is summing up all records in the Quantity field. If you need to, you can also add a filter.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/9/9e4ad735c162d0f07f88e3eb4d4682e91e4d8071.png)

The drawback of this method is that it is not a dynamic sum, so if you want to apply any ‘on-the-fly’ filters, it will not alter the sum.

You can read more about Sum fields [here](https://learn.knack.com/article/5zagwhm7vi-calculations-logic#calculations).

Hope that helps!

---

<div class="post-metadata">

**Author:** ![Jon1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jon1](https://forums.knack.com/u/Jon1)\
**Post date:** [May 16, 2023, 11:35pm UTC](https://forums.knack.com/t/adding-table-column-values/14268/3 "2023-05-16T23:35:59Z")

</div>

Thanks Stephen for the reply. Will give it a try… JON
