# Sum

> Kalipso 5.0 documentation · https://doc.sysdevmobile.com/kalipso/5.0/developing/form/expressions/functions/functions-descriptions/numeric-functions/sum

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:

-d4a54d199c0ad0f6bafe31121399c7f2.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.
:::
