# 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:

![](/files/-MAlQBZuuTnc6hyzKSVQ)

### 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

{% hint style="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.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/numeric-functions/sum.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
