MEDIAN DAX Function (Statistical)

Returns the 50th percentile of values in a column.

Syntax

MEDIAN ( <Column> )
Parameter Attributes Description
Column

A column containing the values.

Return values

Scalar A single variant value.

Median value

Remarks

Only the numbers in the column are counted. Blanks, logical values, and text are ignored.

The following MEDIAN call:

MEDIAN ( table[column] )

corresponds to the following MEDIANX call:

MEDIANX (
    table,
    table[column] 
)

The result is blank in case there are no rows in the table with a non-blank value.

Related articles

Learn more about MEDIAN in the following articles:

  • Statistical Patterns

    DAX includes a few statistical aggregation functions, such as average, variance, and standard deviation. Other typical statistical calculations require you to write longer DAX expressions. Excel, from this point of view, has a much richer language. The Statistical Patterns are a collection of common statistical calculations: median, mode, moving average, percentile, and quartile. » Read more

Related functions

Other related functions are:

Last update: Dec 14, 2018   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

MSDN documentation: https://msdn.microsoft.com/en-us/query-bi/dax/median-function-dax

DAX Conventions
Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Deprecated

This parameter is deprecated and its use is not recommended.

Contribute

Want to improve the content of MEDIAN? Did you find any issue? Please, report it us!
All submissions will be evaluated for possible updates of the content.