Home : GCP
Q10721 - INFO: GCP

GCP returns the percentage of values that meet a certain condition in a given time for a given variable.

SYNTAX:

GCP(VarNum,GroupOffset/StartDate,Grouping/EndDate, Condition, Limit) 

VarNum:  The variable number that refers to the values you want to look at.

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

Condition:  The condition to use in conjunction with the limit. ">" ">=" "<" "<=" "=" and "<>"

Limit:  Value t:o compare variables to.

NOTES:

X = the value, Y = Limit and the condition is set in the condition paramter.  X > Y or X <> Y etc.

EXAMPLES:

GCP(1,1,"R",">",VAL(VINFO(1,"Daily Max")) * 1.2)

Calculates the percent of values for the reporting period (“R”) for variable number 1 that is greater than (“>”) the Daily Max Limit for variable 1 (i.e. VAL(VINFO(1,"Daily Max")) * 1.2

GCP(4041,1,"R",">",10)

Calculates the percent of values for the reporting period (“R”) for variable number 4041 that is greater than (“>”) 10. 

Download Example Template: Help_GCP_Examples.ss3 (Click here for download instructions)

See Also: GCTV

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/11/2008 10:29 AM.
Last Modified on 2/15/2008 11:21 AM.
Last Modified by Scott Dorner.
Article has been viewed 3090 times.
Rated 2 out of 10 based on 2 votes.
Print Article
Email Article