GNOS returns the number of samples for a certain variable in the report range.
SYNTAX:
GNOS(VarNum, GroupOffset/StartDate, Grouping/EndDate, CJP Setting (optional))
VarNum: The variable number to get the count 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 Settings are:
"D" Days
“M” Monthly
"R" Report Dates
“Y” Yearly
CJP Setting (optional): A grouping (like "M", "Q" etc) used to calculate the number of "complience judgement points" by specifying the number of periods that have a value. It will add the number of groupings in the date range specified by the offset and grouping that was at least one data point.
NOTES:
In Design, Spread Reports use Locate, Group Summary to place this formula on a report.
EXAMPLES:
GNOS(1,1,"m") returns the number of samples for Variable 1 for the first month in the date range.
GNOS(1,1,"m", "m") returns the number of samples for Variable 1 for the first month in the date range and adds in the number of periods which contain a sample. In the below example, this would return 5 for the blue. 4 for the number of samples plus 1 for the number of periods ("M" in this case) which contain a value.
Download Example Template: Help_GNOS_Examples.ss3 (Click here for download instructions)
See Also: GSV to test for missed samples and NDM to count the number of certain weekdays in a month.