mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
14 lines
610 B
Plaintext
14 lines
610 B
Plaintext
|
{
|
||
|
"name": "count_distinct",
|
||
|
"type": "function",
|
||
|
"description": "Returns the count of distinct values.",
|
||
|
"arguments": [
|
||
|
{"arg":"expression", "description":"sub expression of field to aggregate"},
|
||
|
{"arg":"group_by", "optional":true, "description":"optional expression to use to group aggregate calculations"},
|
||
|
{"arg":"filter", "optional":true, "description":"optional expression to use to filter features used to calculate aggregate"}
|
||
|
],
|
||
|
"examples": [
|
||
|
{ "expression":"count_distinct(\"stations\",group_by:=\"state\")", "returns":"count of distinct stations values, grouped by state field"}
|
||
|
]
|
||
|
}
|