// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. *Examples* [source.merge.styled,esql] ---- include::{esql-specs}/stats_percentile.csv-spec[tag=percentile] ---- [%header.monospaced.styled,format=dsv,separator=|] |=== include::{esql-specs}/stats_percentile.csv-spec[tag=percentile-result] |=== The expression can use inline functions. For example, to calculate a percentile of the maximum values of a multivalued column, first use `MV_MAX` to get the maximum value per row, and use the result with the `PERCENTILE` function [source.merge.styled,esql] ---- include::{esql-specs}/stats_percentile.csv-spec[tag=docsStatsPercentileNestedExpression] ---- [%header.monospaced.styled,format=dsv,separator=|] |=== include::{esql-specs}/stats_percentile.csv-spec[tag=docsStatsPercentileNestedExpression-result] |===