I have a survey form and some features (trees) will be grouped using the same "TreeNumber"
.
Hopefully, I can write an expression that means users only have to fill in most of the data for one feature, and the expression with fill in the gaps in another set of virtual fields for the other features.
So far I have tried the expression below which I hoped would return the maximum value from all the features filtered to match the current feature "TreeNumber"
but it just crashes QGIS.
maximum("Species", "TreeNumber" = attribute($currentfeature, "TreeNumber"))