DAX Function Guide

MEDIANX
Empty image or helper icon

Sam McKay

CEO & Founder

How does the MEDIANX work?
Returns the median number of an expression evaluated for each row in a table. Use MEDIAN function (DAX) to return the median of numbers in a column.
MEDIANX Formula Syntax

MEDIANX(
     <table>, <expression>
)

How do you use the MEDIANX?

The MEDIANX function takes as its first argument a table, or an expression that returns a table. The second argument is a column containing the numbers you want the median to be computed for, or a column-evaluating expression.

Related Blog Posts

Loading

Considerations when using the MEDIANX?

Only the numbers are counted in the column.

Only the numbers are counted in the column.

Only the numbers are counted in the column.

Related Video Tutorials

Loading

Formula examples using the MEDIANX

= MEDIANX (
    Sales,Sales[Sales Amount]
)

= MEDIANX (
     FILTER(Customers, RELATED( Geography[Country]=”USA” ) ), Customers[Age]
)

Related Courses

Loading