Home : GMAX
Q10815 - INFO: GMAX
GMAX returns the maximum value for a certain variable in the report range.

SYNTAX:

GMAX(VarNum, GroupOffset/StartDate, Grouping/EndDate) 

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

NOTES:

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

EXAMPLES:

GMAX(1,1,"m")  returns the maximum for Variable 1 for the first month in date range. 

Download Example Template: Help_GMIN-GMAX_Examples.ss3 (Click here for download instructions)

See Also: GMAXZ, GMAXOPV

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 2/28/2008 1:19 PM.
Last Modified on 4/21/2008 3:26 PM.
Last Modified by No Author Name Available!.
Article has been viewed 4204 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article