PERCENTILEX.EXC

The PERCENTILEX.EXC function returns the value corresponding to the k-th percentile of the values taken by an expression that is evaluated for all the rows of a table, k belonging to the open interval (0, 1).

Syntax

PERCENTILEX.EXC(
    table,
    expression,
    k
)

Parameters
  • table: Table containing the rows on which the expression will be evaluated. It can be the name of an existing table or an expression that returns a table.
  • expression: Expression to evaluate for each row of the table.
  • k: Percentile in the open interval (0, 1).
Returned value

The PERCENTILEX.EXC function returns a real number.

Additional Information

If the column is empty, the function returns Blank.

If k is not in the open interval (0, 1), the function returns an error.

If k is not a multiple of 1 / (n + 1) (where n is the number of elements), PERCENTILEX.EXC performs an interpolation to calculate the value corresponding to the k-th percentile.

Examples

If we start from the following data table, Números:

PERCENTILEX.EXT function. Example of use

...we can calculate what value is in the 0.2 percentile with the following measure:

p = PERCENTILEX.EXC('Números', 'Números'[N], 0.2)

PERCENTILEX.EXC function. Example of use

In this case, the value 0.2 is not an integer multiple of 1 / (n + 1), so the function performs an interpolation.

As mentioned, table can be the name of a table or an expression that returns a table. To test it, we are going to feed the function with an expression of this type:

p = PERCENTILEX.EXC(FILTER('Números', [N]>4), 'Números'[N], 0.2)

We are applying the function to the subset of the Números table formed by those values greater than 4. The result is the one that can be seen below:

PERCENTILEX.EXC function. Example of use
Category
Statistical
Submitted by admin on Mon, 01/14/2019 - 14:53