---
title: kurtosis aggregate function
description: Learn the syntax of the kurtosis function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/kurtosis
---

# `kurtosis` aggregate function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns the kurtosis value calculated from values of a group.

## Syntax

```
kurtosis ( [ALL | DISTINCT] expr ) [FILTER ( WHERE cond ) ]
```

## Arguments

* `expr`: An expression that evaluates to a numeric.
* `cond`: An optional boolean expression filtering the rows used for aggregation.

## Returns

A `DOUBLE`.

If `DISTINCT` is specified the function operates only on a unique set of `expr` values.

## Examples

```sql
> SELECT kurtosis(col) FROM VALUES (-10), (-20), (100), (100), (1000) AS tab(col);
 0.16212458373485106

> SELECT kurtosis(DISTINCT col) FROM VALUES (-10), (-20), (100), (100), (1000) AS tab(col);
 -0.7014368047529627

> SELECT kurtosis(col) FROM VALUES (1), (10), (100), (10), (1) as tab(col);
 0.19432323191699075
```

## Related functions

* [`skewness` aggregate function](https://docs.databricks.com/aws/en/sql/language-manual/functions/skewness.md)
