> For the complete documentation index, see [llms.txt](https://docs.valq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.valq.com/model/formula-functions/math-functions/product.md).

# PRODUCT

The PRODUCT function returns the product of all values in the arguments.

### Syntax

PRODUCT(value1, ...valueN?) - > number

### Arguments

<table><thead><tr><th width="159">Arguments</th><th width="148">Datatype</th><th>Description</th></tr></thead><tbody><tr><td>value1</td><td>Number/Node reference</td><td>The first node or number to be multiplied. This is a required argument.</td></tr><tr><td>...valueN?</td><td>Number/Node reference</td><td>The additional nodes or numbers to be multiplied. These are optional arguments.</td></tr></tbody></table>

### Example

Consider the below example where we have data for Units sold and price. The objective is to calculate Sales value by multiplying Units sold with Unit price.

<table><thead><tr><th width="163">Periods</th><th width="133">Jan</th><th width="64">Feb</th><th width="64">Mar</th><th width="64">Apr</th><th width="64">May</th><th width="64">Jun</th><th width="64">Jul</th><th width="64">Aug</th><th width="64">Sep</th><th width="64">Oct</th><th width="64">Nov</th><th width="64">Dec</th></tr></thead><tbody><tr><td><mark style="color:purple;">Units sold</mark></td><td>2000</td><td>2351</td><td>978</td><td>1520</td><td>2415</td><td>3154</td><td>1548</td><td>3144</td><td>2458</td><td>3654</td><td>1452</td><td>2548</td></tr><tr><td><mark style="color:orange;">Unit price</mark></td><td>6</td><td>11</td><td>6</td><td>7</td><td>8</td><td>11</td><td>7</td><td>10</td><td>6</td><td>5</td><td>9</td><td>12</td></tr></tbody></table>

To achieve this, the following formula should be written in the \[Sales] node.

<mark style="color:blue;">**`PRODUCT`**</mark>**`(`**<mark style="color:purple;">**`[Units sold]`**</mark>**`,`**<mark style="color:orange;">**`[Unit price]`**</mark>**`)`**

### **Result**

<table data-header-hidden><thead><tr><th width="163">Column1</th><th width="133">Column2</th><th width="84">Column3</th><th width="84">Column4</th><th width="84">Column5</th><th width="84">Column6</th><th width="84">Column7</th><th width="84">Column8</th><th width="84">Column9</th><th width="92">Column10</th><th width="92">Column11</th><th width="92">Column12</th><th width="92">Column13</th></tr></thead><tbody><tr><td>Sales</td><td>12000</td><td>25861</td><td>5868</td><td>10640</td><td>19320</td><td>34694</td><td>10836</td><td>31440</td><td>14748</td><td>18270</td><td>13068</td><td>30576</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.valq.com/model/formula-functions/math-functions/product.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
