PercentileMode.SqlCont (4) is an enumeration that specifies the percentile mode type. It is a member of the PercentileMode.Type and indicates that when interpolating values for List.Percentile, a method compatible with SQL Server’s PERCENTILE_CONT should be used.
Examples
Find the quartiles of the list { 1, 1, 15, 80, 85 } using an interpolation method matching SQL Server’s PERCENTILE_CONT.
// Returns { 1, 15, 80 }
= List.Percentile(
{ 1, 1, 15, 80, 85 },
{ 0.25, 0.5, 0.75 },
[ PercentileMode = PercentileMode.SqlCont ]
)
Some other examples using PercentileMode.SqlCont are:
// Returns { 1, 80 }
= List.Percentile(
{ 1, 1, 15, 80, 85 },
{ 0.25, 0.75 },
[ PercentileMode = PercentileMode.SqlCont ]
)
// Returns { 2.6, 4.2, 7, 11, 15, 41 }
= List.Percentile(
{ 1, 5, 15, 80, 100 },
{ 0.1, 0.2, 0.3, 0.4, 0.5, 0.6 },
[ PercentileMode = PercentileMode.SqlCont ]
)
Related enumerations
Other related enumerations are:
Applies to
Here’s a list of functions that work with PercentileMode.Type:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy