QGIS/resources/function_help/json/count_distinct
Alex d7ffe0b7ec
DelazJ bonification
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-01-11 11:17:49 -05:00

24 lines
737 B
Plaintext

{
"name": "count_distinct",
"type": "function",
"groups": ["Aggregates"],
"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"
}],
"tags": ["aggregate", "distinct", "count"]
}