Home : GGMZ
Q11313 - INFO: GGMZ
 GGMZ return the Geometric Average of all of the values in the date range specified by the GroupOffset and Grouping for the variable.

SYNTAX:

GGMZ(VarNum,GroupOffset/StartDate,Grouping/EndDate, Decimal_Places, MDL_Rule, GType, optional No_Value_Print) 

VarNum:  The variable number to get the total 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:

"D" Days
“M” Monthly 
"R" Report Dates
Click here for available Grouping options

Decimal Places: Sets the number of decimal places to be displayed. For variables with decimal places set to "Not Fixed" click here for additional formatting options.

MDL Rule: Sets when to display the MDL symbol (<,>, ND) with the calculated statistic.  Valid settings are:

1 Display MDL symbol if one of the values contains the MDL symbol
2 Display MDL symbol if all of the values contains the MDL symbol.
3 Display MDL symbol if over half the values contains the MDL symbol.
4 Cascade all symbols

GType: Sets how zero's are handled in the calculation.

0 - Ignore zeros
1 - Convert 0 to 1
2 - Add one to all
 

Type Values Values Used Result
0 200,0,52,74 200,52,74 91.6
1 200,0,52,74 200,1,52,74 29.6
2 200,0,52,74 201,1,53,75 28.9 (29.9-1)


No_Value_Print: Sets a string to be displayed if there are no values in the date range.

 

NOTES:

In Design, Spread Reports use Locate, Group Summary to place this formula on a report.

EXAMPLES:

GGMZ(1,2,"M",2,1,1,"NO DATA") Returns the geometric mean of the values for variable 1, for the 2nd month of the report.  Zero's are converted to 1 before geometric mean is calculated.

See Also: GGM, GGMOPV

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 6/4/2008 3:11 PM.
Last Modified on 12/14/2016 4:10 PM.
Last Modified by Ryan Rhoten.
Article has been viewed 4317 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article