# MAX

The MAX function returns the largest number from a set of values. It evaluates the provided numbers or node references and identifies the highest value among them. This function is commonly used in data analysis to determine maximum values, peaks, or top-performing results within a dataset.

### Syntax

```javascript
MAX (value1,[value2]....)
```

### Arguments

value1 - The numbers or names, arrays, or references that contain numbers (Required).

value2... - The numbers or names, arrays, or references that contain numbers (Required).

### Example

```javascript
MAX (COLUMN1,COLUMN2,COLUMN3)
```

In the example below, the *Max Values* measure is created using the **MAX** function, which returns the largest value among *MEASURE 1, MEASURE 2,* and *MEASURE 3*.

<figure><img src="/files/rIcDZ0fZPv0RD5R3fBOU" alt=""><figcaption><p>Applying MAX Function</p></figcaption></figure>

### Excel Equivalent

[MAX](https://support.microsoft.com/en-us/office/max-function-e0012414-9ac8-4b34-9a47-73e662c08098)


---

# 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://docs.inforiver.com/formula-syntax/math-functions/max.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.
