# Sum

### **Description**‌

The Sum function returns the summarized value of the specified table column.

### **Syntax**

‌The syntax for the Sum function is:

`Sum(table.column)`

#### ‌**Parameters**

table.column - the table column which is to be summarized.

### **Returns**

‌The Sum function returns a number.

### **Example**‌

Let's look at some Sum function examples and explore how to use the Sum function.‌

<div align="left"><img src="/files/-MZrlWRz8ePn94npDDYl" alt="Example table: orderQuantity"></div>

```
sum(orderQuantity.Quantity)
Result: 27

Sum([col: "4"] & [col: "7"])
Result: 11

let projectedProfit = sum((orders where isConfirmed).value) - sum(expenses.cost);
```


---

# 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://help.novacuraflow.com/development/flowscript/table/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.
