> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Greatest

Retourneert de grootste waarde uit de invoerwaarden

**Categorie:** `math`

**Syntax:**

```
Greatest([invoer1], [invoer2], ...)
```

**Retourneert:** `Any`

**Contextfiltering:** ✓ Ja

## Parameters

| Naam       | Type                                    | Vereist | Beschrijving                                                                                                            |
| ---------- | --------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| `invoer1`  | `getal of datum of tekenreeks of kolom` | ✓ Ja    | De data of kolom met data die wordt geëvalueerd. Invoer kan bestaan uit getallen, datums of tekenreeksen                |
| `invoeren` | `getal of datum of tekenreeks of kolom` | ✗ Nee   | Aanvullende invoeren om te vergelijken. Alle aanvullende invoeren moeten overeenkomen met het type van de eerste invoer |

**Toegestane kolomtypen voor `invoer1`:** INT, FLOAT, DECIMAL, DATE, DATETIME, VARCHAR, TEXT

**Toegestane kolomtypen voor `invoeren`:** INT, FLOAT, DECIMAL, DATE, DATETIME, VARCHAR, TEXT

## Validatie

* Minimum parameters: 2
* Maximum parameters: 10

## Voorbeelden

```
Greatest([Winst 2020], [Winst 2021], [Winst 2022])
```

Retourneert de winst van het jaar met de hoogste winst

```
Greatest(10, 20, 5, 15)
```

Retourneert 20
**Resultaat:** `20`

```
Greatest([Factuurdatum], Date("2020-01-01"))
```

Retourneert de meest recente datum
