Aggregating functions
count(\*)
The number of matching rows.
count(variable)
The number of non-null values.
count(DISTINCT variable)
All aggregating functions also take the DISTINCT operator, which removes duplicates from the values.
collect(n.property)
List from the values, ignores null.
sum(n.property)
Sum numerical values. Similar functions are avg(), min(), max().
percentileDisc(n.property, $percentile)
Discrete percentile. Continuous percentile is percentileCont(). The percentile argument is from 0.0 to 1.0.
stDev(n.property)
Standard deviation for a sample of a population. For an entire population use stDevP().
Comments