Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rboccuzziYes, that it correct, you want to implent as avg1. The function avg takes the average of all the parameters passed into it; if you pass a single argument, it will always return that. What you are looking for would be groupAvg, which isn't currently implemented.
To help avoid this confusion, in future versions of the LAE, we are introducing new names, groupSum and groupCount, and will encourage their use over the current sum and count; hopefully this will help clarify that distinction.
Cheers
Rich