The expression that is being aggregated must either be a simple aggregate field, or a filter applied to an aggregate field. ...