diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-11 09:30:28 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-11 09:30:28 +0300 |
| commit | a5b9ca23e2e0e08a5908a723e93fe89685afb28b (patch) | |
| tree | 785f402a163705fcff7151363ce57dcdeb8c0ba8 /doc/querylanguage.md | |
| parent | 3f867dc6a821f85dc54f230b5f6a6c7e933f54a8 (diff) | |
b0: add tests and docs for percentage/percentile aggregations
Diffstat (limited to 'doc/querylanguage.md')
| -rw-r--r-- | doc/querylanguage.md | 2 |
1 files changed, 2 insertions, 0 deletions
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. |
