# Sum

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/numeric-functions/sum
>
> Sum adds up all the values of a column of a Table control, given by column index; non-numeric values are converted to numbers.

This Function returns a _\<numeric>_, which is the the result of the sum of all the values of the specified **Column** of a **Table**.

Function available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### Parameters

* **Table** _\<control> -_ Source Table control.
* **Column** _\<numeric> -_ Index of the column of the Table to sum the values from.

### **Examples**

* _Example 1_

Assuming that Table "Products" has a Column called "Stock" with index "3", with 3 records. Lets assume that the values for each record on that column are respectively: 200, 150 and 45.\
\
Sum(CTRL(Products), 3)\
**Result** = 395

* _Example 2_

Assuming that Table "Products" has a Column called "Stock" with index "3", with 3 records. Lets assume that the values for each record on that column are respectively: "200", "150" and "EMPTY".\
\
Sum(CTRL(Products), 3)\
**Result** = 350

:::info
Regardless of the type pf the value in **Column**, it's always treated as a numeric. Therefore, if you try to execute this function over a **Column** filled with strings, each value will be converted to numeric before being added up to the result.
:::
