Median

The Median function returns the median of a column of numbers. The median is the middle value or number in the middle of a set of numbers (and not the average).

Median (numbers, break_col)

numbers references the column that contains the numbers on which the median is calculated.

break_col is an optional parameter that references a break column.

The following examples show the results of inserting the Median function in two separate tables.

Example 1

In this example, the Median function is used on a numeric column that has an odd number of rows:

Median (Amount)

The Median function returns the number in the middle, which in this example is 30.

Table 160. Median Example 1

State

Amount

Computed

AZ

10

30

CA

20

30

FL

30

30

MD

40

30

MI

50

30

If the numbers column has an even number of rows, the Median function calculates the average of the two numbers in the middle.

Table 161. Median Example 2

State

Amount

Computed

AZ

10

25

CA

20

25

FL

30

25

MD

40

25