GLASTZ returns the last value(value can contain data qualifiers) found in the date range specified by the Offset and Grouping for the variable.
SYNTAX:
GLASTZ(VarNum, GroupOffset/StartDate, Grouping/EndDate, Decimal Places, MDL Rule, optional No Value Print)
VarNum: The variable number to get the first value 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 availiable 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 over half the values contains the MDL symbol.
3 Display MDL symbol if all of the values contains the MDL symbol.
4 Cascade all symbols
5 If all values are '<', report as <, else use 0 for <. (<2,<2 = <2, 10,<2 = 5)
6 Ignore entries with symbols (data qualifiers). <2,>10,14=14. 2,10 = 6
No Value Print: Sets a string to be displayed if there are no values in the date range.
NOTES:
Data is placed with this function as text, therefore data placed in this manner cannot be used in other formulas. In Design, Spread Reports use Locate, Group Summary to place this formula on a report.
EXAMPLES:
GLASTZ(1,3,"Q",2,1) Returns the last value found for variable 1, of the second quarter of the report displaying 2 decimals.
GLASTZ(41,1,"R",2,1,"xx") Returns the last value for variable 41 for the report date range. Returns xx if no values exist for 41 in the date range.
Download Example Template: Help_GLAST_Examples.ss3 (Click here for download instructions)
See Also: GLAST, GLASTOPV