# Creating a button that tallys in a table?

**URL:** <https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646>\
**Category:** Ask the Community\
**Created:** [April 20, 2019, 2:24am UTC](https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646 "2019-04-20T02:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daran\_Lemon](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/daran_lemon/32/7562_2.png) [@Daran\_Lemon](https://connect.superhuman.com/u/Daran_Lemon)\
**Post date:** [April 20, 2019, 2:24am UTC](https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646/1 "2019-04-20T02:24:14Z")

</div>

Trying to create a simple button to log calls, appointments, etc that creates a tally in the corresponding table. Can’t seem to find an example or solution. I’ve provided my table as an example. Thanks for any thoughts  
https://coda.io/embed/v73GSdoxI1/_sukxk?viewMode=embedplay

---

<div class="post-metadata">

**Author:** ![Ben\_Lee](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ben_lee/32/49867_2.png) [@Ben\_Lee](https://connect.superhuman.com/u/Ben_Lee)\
**Post date:** [April 20, 2019, 3:14am UTC](https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646/2 "2019-04-20T03:14:47Z")

</div>

With your table setup, you’ll want to filter that table to the “Contacts” row and then reference the “Tally” column. Then you just “+1”, so it will always add one to the value that is already there…

`Tally.Filter(Action=Contacts).Tally+1`

Put that formula in your button “Update Values” section for “Tally”.

You can also change the option from “Add or Modify” to just “Modify” if you want.

---

<div class="post-metadata">

**Author:** ![Daran\_Lemon](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/daran_lemon/32/7562_2.png) [@Daran\_Lemon](https://connect.superhuman.com/u/Daran_Lemon)\
**Post date:** [April 20, 2019, 4:33am UTC](https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646/3 "2019-04-20T04:33:44Z")

</div>

Thanks @Ben_Lee for the response. I got a little closer. When clicking the button now it inserts the formula. I’m probably messing something obvious.  
https://coda.io/embed/v73GSdoxI1/_sukxk?viewMode=embedplay

---

<div class="post-metadata">

**Author:** ![Ben\_Lee](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/ben_lee/32/49867_2.png) [@Ben\_Lee](https://connect.superhuman.com/u/Ben_Lee)\
**Post date:** [April 20, 2019, 5:03pm UTC](https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646/4 "2019-04-20T17:03:04Z")

</div>

For a lot of Coda, like formulas in the canvas, you need to type an equals sign first, `=`, to prompt the formula pop-up. When you enter that formula, you should be seeing this popup and you’ll see the formula items highlighted…

[![CloudApp](https://global.discourse-cdn.com/coda1/original/3X/a/1/a1d76573bd3a08474bb5a7e8f7bd599850605aac.png "Image 2019-04-20 at 9.59.28 AM") ](https://cl.ly/nOuBBnoR)

---

<div class="post-metadata">

**Author:** ![Daran\_Lemon](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/daran_lemon/32/7562_2.png) [@Daran\_Lemon](https://connect.superhuman.com/u/Daran_Lemon)\
**Post date:** [April 22, 2019, 4:14am UTC](https://connect.superhuman.com/t/creating-a-button-that-tallys-in-a-table/7646/5 "2019-04-22T04:14:36Z")

</div>

Thanks @Ben_Lee for your help. I was still getting an error. Simplified my setup a bit, I was trying to use a separate table as the data set for the actions with goals. Got it going for now. Thanks!
