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

# CountDistinct

Returns the number of unique values in the specified column

**Category:** `aggregate`

**Syntax:**

```
CountDistinct([column])
```

**Returns:** `Integer`

**Context Filtering:** ✗ No

## Parameters

| Name     | Type     | Required | Description                         |
| -------- | -------- | -------- | ----------------------------------- |
| `column` | `column` | ✓ Yes    | The column to count distinct values |

## Validation

* Minimum parameters: 1
* Maximum parameters: 1

## Examples

```
CountDistinct([CustomerID])
```

Returns the number of unique customers
