Table of contents
TOC
Collapse the table of content
Expand the table of content

MEDIAN Function (DAX)

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

Returns the median of numbers in a column.

To return the median of an expresssion evaluated for each row in a table, use MEDIANX Function (DAX).

Syntax

MEDIAN(<column>)  

Parameters

TermDefinition
columnThe column that contains the numbers for which the median is to be computed.

Return Value

A decimal number.

Remarks

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

MEDIAN( Table[Column] ) is equivalent to MEDIANX( Table, Table[Column] ).

Example

The following computes the median of a column named Age in a table named Customers:

=MEDIAN( Customers[Age] )  

See Also

MEDIANX Function (DAX)

© 2018 Microsoft