specifies the statistic
for the measure. The following base statistics are available: N, NMISS,
NUNIQUE, SUM, MAX, MIN, or USS. In addition, these derived statistics
are also available: AVG, RANGE, CSS, VAR, STD, STDERR, CV, T, PRT,
LCLM, or UCLM.
Note: At least one non-NUNIQUE
measure must be defined.
New cubes that are
based on a data source that contains existing summarized data (where
such data has been indicated in at least one AGGREGATION statement
via the TABLE= option), must include MEASURE statements for the stored
statistics required for each derived statistic that you want to create
for the new cube. For example, if you want to calculate AVG, you must
create measures for N and SUM, as well as AVG.
Note: MOLAP aggregations do not
require the N and SUM.
The following table
indicates which stored statistics are required for each derived statistic:
Stored Statistics Required for Each Derived Statistic
|
Required Stored Statistics
|
|
|
|
|
|
|
VAR, STD, STDERR, CV,
T, PRT, LCLM, UCLM
|
|
Note: For information about statistic
formulas, see “Keywords and Formulas” in
Base SAS Procedures Guide.
For cubes that are
not loaded from a fully summarized data source (that is, you specified
a data source by using the DATA | FACT= option), some statistics use
formats taken from the input data source. Specifically, if the statistic
is SUM, MIN, MAX, RANGE, AVG, STD, STDERR, LCLM, or UCLM, then PROC
OLAP uses the format that is assigned to the column specified by the
COLUMN | ANALYSIS= option. The following table lists the formats used
for the other supported statistics:
Default Formats Used for Statistics
For cubes that are
loaded from a fully summarized data source (that is, you specified
the data source by using the AGGREGATION statement), the default format
is BEST12.
To override the default
formats, you can either set the FORMAT= option or use a SAS FORMAT
statement. The FORMAT= option also overrides a FORMAT statement. When
you rebuild a cube that has been physically deleted, the rebuilt cube
still uses the formats originally saved in the cube's metadata. This
means that the rebuilt cube does not automatically include any formatting
changes that you might have made in the input data source. To manually
specify the new formats, edit and rebuild the cube by using SAS OLAP
Cube Studio.