GAVG return the average of all of the values in the date range specified by the Offset and Grouping for the variable.
VarNum: The variable number to get the average for.
GroupOffset/StartDate: Used with the Grouping parameter to set the dates to calculate the stat for. Sets the number of Groups (set by the Grouping Parameter) to be added to set the dates. See examples below. If this field is a date string (i.e. "07/16/2004") or refers to a cell with a date in it, it is assumed to be the start date to calculate the stat for.
Grouping/EndDate: Used to set which dates to calculate the stat for. If the Grouping is a date literal string (i.e. "07/16/2004") or refers to a cell with a date in it, it is assumed to be the end date to calculate the stat for. Common Groupings are:
"R" Report Dates
Click here for available Grouping options
In Design, Spread Reports use Locate, Group Summary to place this formula on a report.
GAVG(1,2,"M") Returns the average of the values for variable 1, for the 2nd month of the report.
GAVG(4001,5,"D") returns the average for variable 4001 for the 5th day of the report.
GAVG(11,"1/15/07","8/30/07") returns the average for variable 11 from 1/15/07 thru 8/30/07.
GAVG(12,C3,C4) returns the average from the date in C3 (i.e. cell C3 is 1/1/07) thru the date in C4.
Download Example Template: Help_GAVG_Examples.ss3 (Click here for download instructions)
See Also: GAVGZ, GAVGOPV