Fractile(Sales, 0.9)

Fractile (percentiles) in Power BI

Fractile() is inclusive and interpolates between values, which is the same method as DAX PERCENTILE.INC. FractileExc() matches PERCENTILE.EXC. For a percentile over an aggregated grain (Fractile with Aggr), use PERCENTILEX.INC over a table of groups.

Direct equivalent DAX Power Query

Short answer: Fractile(Sales, 0.9) becomes PERCENTILE.INC(Sales[Amount], 0.9). Fractile(Aggr(Sum(Sales), Customer), 0.9) becomes PERCENTILEX.INC(VALUES(Customer[CustomerID]), [Sales], 0.9).

What it does in Qlik

Fractile([{set}] [DISTINCT] [TOTAL [<fld>]] expr, fraction) returns the value at the given fraction (0 to 1) of the data, interpolating between the two closest values. It uses the inclusive method. FractileExc uses the exclusive method. Median(x) is the same as Fractile(x, 0.5).

Qlik example

Qlik chart expressions
Fractile(Sales, 0.9)
Fractile(Aggr(Sum(Sales), Customer), 0.75)
FractileExc(DeliveryDays, 0.95)

Power BI equivalent

DAX measures

DAX
P90 sales line = PERCENTILE.INC ( Sales[Amount], 0.9 )

P75 customer sales =
PERCENTILEX.INC ( VALUES ( Customer[CustomerID] ), [Sales], 0.75 )

P95 delivery days (exc) = PERCENTILE.EXC ( Orders[DeliveryDays], 0.95 )

Power Query

Power Query M
// Single value over a column (interpolated, like Fractile)
= List.Percentile(Source[Amount], 0.9, [PercentileMode = PercentileMode.ExcelInc])

List.Percentile already defaults to PercentileMode.ExcelInc, the Fractile method. Pass PercentileMode.ExcelExc for FractileExc.

Gotchas and behaviour differences

  • PERCENTILE.EXC returns an error when the fraction is too close to 0 or 1 for the number of rows. Fractile is more forgiving, so wrap EXC measures in IFERROR or use INC.
  • Qlik ignores NULLs and text. DAX PERCENTILE.INC on a column ignores BLANKs, but PERCENTILEX.INC includes a group when the measure returns 0, so filter out zero-sales groups if Qlik had them as NULL.
  • Fractile(DISTINCT ...) has no direct flag in DAX. Iterate over VALUES(column) with PERCENTILEX.INC to get the same result.

Official documentation

Related pages

Spotted an error or a better pattern? QlikToDax is maintained by a working BI consultant; corrections are welcome via the About page. Last reviewed 2026-10-25.