<p dir="ltr"><br>
><br>
><br>
> Adding to QgsExpression doesn't make much sense as QgsExpression is only based on a single feature.  You would need layer on top of if with functions that can do aggregates.<br>
><br>
> - Nathan<br>
></p>
<p dir="ltr">I would love to see layer stats in QgsExpression. Then it'd be possible to generate expressions which could compare individual features to the entire layer - eg testing if a value is greater than the layer mean, etc...</p>

<p dir="ltr">There's already a bunch of non-feature specific functions in QgsExpression and a lot of demand for even more.</p>
<p dir="ltr">Nyall<br>
</p>