You are on page 1of 2

Calculation Script Calculation

Calculation script calculation is the second method of calculation. Using a


calculation script,
you can choose exactly how to calculate a database. For example, you can calculate
part of a
database or copy data values between members.
A calculation script contains a series of calculation commands, equations, and
formulas. For
example, the following calculation script increases the actual marketing expenses in
the ew
!ork region by "#.
FIX (Actual, New York)
Marketing = Marketing *1.05;
ENDFIX;
About Multidimensional Calculation Concepts
, which is based on a simplified database, illustrates the nature of multidimensional
calculations$
Figure 108 Calculating a Multidimensional Database
%he database has three dimensions&Accounts, %ime, and 'cenario.
%he Accounts dimension has four members$
G 'ales and C()' are input values
G *argin + 'ales , C()'
G *argin# + *argin # 'ales -*argin as a percentage of 'ales.
%he %ime dimension has four quarters. %he example displays only the members in
/tr0&1an,
Feb, and *ar.
%he 'cenario dimension has two child members&2udget for budget values and
Actual for actual
values.
About Multidimensional Calculation Concepts 353
%he outline in is illustrated as a three,dimensional cube in
Figure 109 Illustration of a !ree"Dimensional Database
An intersection of members -one member on each dimension. represents a data
value3 a data
value is stored in one cell in the database. %o refer to a specific data value in a
multidimensional
database, you must specify each member on each dimension. 4n 5ssbase, member
combinations
are denoted by a cross,dimensional operator -,6.. Create the cross,dimensional
operator using
a hyphen -,. and a greater,than symbol -6.. 7o not include a space between the
crossdimensional
operator and members.
%he single cell containing the data value for 'ales, 1an, Actual, as shown, is written
as 'ales ,6 1an ,6 Actual.
Figure 110 Sales# $an# Actual Slice of t!e Database
8hen you refer to 'ales, you are referring to a slice of the database containing
eight values, as
shown in which are$
G 'ales ,6 1an ,6 Actual
G 'ales ,6 Feb ,6 Actual
G 'ales ,6 *ar ,6 Actual
G 'ales ,6 /tr0 ,6 Actual
G 'ales ,6 1an ,6 2udget
G 'ales ,6 Feb ,6 2udget
G 'ales ,6 *ar ,6 2udget
G 'ales ,6 /tr0 ,6 2udget
8hen you refer to Actual 'ales, you are referring to four values, as shown which
are$
G 'ales ,6 1an ,6 Actual
G 'ales ,6 Feb ,6 Actual
G 'ales ,6 *ar ,6 Actual
G 'ales ,6 /tr0 ,6 Actual
Figure 11% Actual# Sales Slice of t!e Database
8hen 5ssbase calculates the formula 9*argin# + *argin # 'ales,: it takes each
*argin value
and calculates it as a percentage of its corresponding 'ales value.
5ssbase cycles through the database and calculates *argin# as follows$
0. *argin ,6 1an ,6 Actual as a percentage of 'ales ,6 1an ,6 Actual.
%he result is placed in *argin# ,6 1an ,6 Actual.
;. *argin ,6 Feb ,6 Actual as a percentage of 'ales ,6 Feb ,6 Actual.
%he result is placed in *argin# ,6 Feb ,6 Actual.
<. *argin ,6 *ar ,6 Actual as a percentage of 'ales ,6 *ar ,6 Actual.
%he result is placed in *argin# ,6 *ar ,6 Actual.
=. *argin ,6 /tr0 ,6 Actual as a percentage of 'ales ,6 /tr0 ,6 Actual.
%he result is placed in *argin# ,6 /tr0 ,6 Actual.
". *argin ,6 1an ,6 2udget as a percentage of 'ales ,6 1an ,6 2udget.
%he result is placed in *argin# ,6 1an ,6 2udget.
About Multidimensional Calculation Concepts 355
>. 5ssbase continues cycling through the database until it has calculated *argin#
for every
combination of members in the database.

You might also like