PERCENTILEX.EXC DAX Function (Statistical)

Returns the k-th (exclusive) percentile of an expression values in a table.

Syntax

PERCENTILEX.EXC ( <Table>, <Expression>, <K> )
Parameter Attributes Description
Table
Iterator

Table over which the Expression will be evaluated.

Expression
Row Context

Expression to evaluate for each row of the table.

K

Desired percentile value in the interval [1/(n+1),1-1/(n+1)], where n is a number of valid data points.

Return values

Scalar A single variant value.

Percentile value.

Remarks

PERCENTILEX.EXC considers the blank values returned by Expression. This behavior is different from PERCENTILE.EXC, which ignores the blank values.

» 1 related article
» 3 related functions

Examples

--  PERCENTILEX iterates the table and compute the expression for each row, 
--  computing the k-th percentile 
EVALUATE
{
     ( "Average Sales",         AVERAGEX ( Sales, Sales[Quantity] * Sales[Net Price] ) ),
     ( "Median Sales",          MEDIANX ( Sales, Sales[Quantity] * Sales[Net Price] ) ),
     ( "Percentile Sales 0.25", PERCENTILEX.INC ( Sales, Sales[Quantity] * Sales[Net Price], 0.25 ) ),
     ( "Percentile Sales 0.50", PERCENTILEX.INC ( Sales, Sales[Quantity] * Sales[Net Price], 0.50 ) ),
     ( "Percentile Sales 0.75", PERCENTILEX.INC ( Sales, Sales[Quantity] * Sales[Net Price], 0.75 ) )
}

Value1 Value2
Average Sales 305.21
Median Sales 114.21
Percentile Sales 0.25 22.99
Percentile Sales 0.50 114.21
Percentile Sales 0.75 345.60
--
-- Different handling of blanks between PERCENTILE and PERCENTILEX
-- PERCENTILE ignores blank values
-- PERCENTILEX considers blank values
--
DEFINE
    TABLE SampleDataWithBlanks =
        { BLANK (), BLANK (), BLANK (), 1, 2, 3, 4 }

EVALUATE
{
    ( "PERCENTILE.EXC 0.25", PERCENTILE.EXC ( SampleDataWithBlanks[Value], 0.25 ) ),
    ( "PERCENTILE.EXC 0.50", PERCENTILE.EXC ( SampleDataWithBlanks[Value], 0.50 ) ),
    ( "PERCENTILE.EXC 0.75", PERCENTILE.EXC ( SampleDataWithBlanks[Value], 0.75 ) ),
    ( "PERCENTILEX.EXC 0.25", PERCENTILEX.EXC ( SampleDataWithBlanks, SampleDataWithBlanks[Value], 0.25 ) ),
    ( "PERCENTILEX.EXC 0.50", PERCENTILEX.EXC ( SampleDataWithBlanks, SampleDataWithBlanks[Value], 0.50 ) ),
    ( "PERCENTILEX.EXC 0.75", PERCENTILEX.EXC ( SampleDataWithBlanks, SampleDataWithBlanks[Value], 0.75 ) )
}

Value1 Value2
PERCENTILE.EXC 0.25 1.25
PERCENTILE.EXC 0.50 2.50
PERCENTILE.EXC 0.75 3.75
PERCENTILEX.EXC 0.25 (Blank)
PERCENTILEX.EXC 0.50 1.00
PERCENTILEX.EXC 0.75 3.00

Related articles

Learn more about PERCENTILEX.EXC 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: Nov 7, 2024   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Ville-Pietari Louhiala, Kenneth Barber

Microsoft documentation: https://docs.microsoft.com/en-us/dax/percentilex-exc-function-dax

2018-2024 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

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.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

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


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.