Calculate Average or Mean of Attribute Field in QGIS Model

field-calculatorqgisqgis-processing

I need to know how to calculate the average / mean of an attribute field in my point shape file. Is this possible to do with the field calculator? I just found the options min or max but not mean. The result should be written in a new attribute field for further data processing. I would like to do this within a model.

Best Answer

You could get statistics on that field (Vector > Analysis Tools > Basic statistics) which will tell you the mean, and then create a new attribute and use Field Calculator to fill every record with that value.

Related Question