RE: Problems with aggregate UDF (subaggregate undefined error)