From a5b9ca23e2e0e08a5908a723e93fe89685afb28b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 11 Apr 2026 09:30:28 +0300 Subject: b0: add tests and docs for percentage/percentile aggregations --- doc/querylanguage.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/querylanguage.md') diff --git a/doc/querylanguage.md b/doc/querylanguage.md index fab387b..3d134e3 100644 --- a/doc/querylanguage.md +++ b/doc/querylanguage.md @@ -61,3 +61,5 @@ FUNCTION := md5sum|maskdigits * `rorder` stands for reverse order. * `lacks` is an alias for `ncontains` (not contains). * Available fields (variables and barewords) vary from the log format used. Check out the [log format](./logformats.md) documentation for more information. +* `percentage(field)` returns the selected group's share of the total for that field across all groups, expressed as a value between 0 and 100. +* `percentile(field)` returns the percentile rank of the selected group's value among all grouped values for that field, also expressed as a value between 0 and 100. Equal values share the same rank. -- cgit v1.2.3