There is a frequent need to dynamically output an average value of one field in relation to the other when filters or selections on the map are used. For example, we need to calculate the average soil moisture, but the soil area (polygon) sizes are not equal, so we need to relate the moisture value to the area it belongs to.