![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This chapter describes how to calculate a database. It also explains the concept of calculating a multidimensional database.
This chapter includes the following sections:
A database contains two types of values. It contains the values that you enter, which are called input data, and the values that have been calculated from the input data.
Consider the following examples:
Hyperion Essbase offers two ways that you can calculate a database:
Which way you choose depends on the type of calculation that you want to do.
Outline calculation is the simplest method of calculation. Hyperion Essbase bases the calculation of the database on the relationships between members in the database outline and on any formulas that have been associated with members in the outline.
For example, Figure 25-1 shows the relationships between the members of the Market dimension in the Sample Basic database. The values for New York, Massachusetts, Florida, Connecticut, and New Hampshire are added to calculate the value for East. The values for East, West, South, and Central are added to calculate the total value for Market.
Figure 25-1: Relationship Between Members of the Market Dimension
Figure 25-2 shows the Scenario dimension from the Sample Basic database. The Variance and Variance % members are calculated using the formulas attached to them.
Figure 25-2: Calculation of Variance and Variance %
For more information on creating database outlines, see Creating and Changing Database Outlines.
When you design an overall database calculation, it may be more efficient to calculate some member combinations when you retrieve the data, instead of pre-calculating the member combinations during the regular database calculation. You can use dynamic calculations to calculate data at retrieval time. For more information, see Dynamically Calculating Data Values.
Calc script calculation is the second method of calculation. Using a calc (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 calc script contains a series of calculation commands, equations, and formulas. For example, the following calc script increases the actual marketing expenses in the New York region by 5%.
Figure 25-3: Calc Script Editor
For more information on calc scripts, see Developing Calc Scripts.
To understand the nature of multidimensional calculations, you need to know some basic multidimensional concepts.
To illustrate these concepts, consider the following, simplified database:
Figure 25-4: Calculating a Multidimensional Database
The database has three dimensions: Accounts, Time, and Scenario.
The Accounts dimension has four members:
The Time dimension has four quarters. The example displays only the members in Qtr1: Jan, Feb, and Mar.
The Scenario dimension has two child members: Budget for budget values and Actual for actual values.
An intersection of members (one member on each dimension) represents a data value. Our example has three dimensions; therefore, the dimensions and data values in the database can be represented as a cube:
Figure 25-5: Three-Dimensional Database
From the following diagram, you can see that when you refer to Sales, you are referring to a slice of the database containing eight Sales values:
Figure 25-6: Sales, Actual, Budget Slice of the Database
When you refer to Actual Sales, you are referring to four Sales values:
Figure 25-7: Actual, Sales Slice of the Database
To refer to a specific data value in a multidimensional database, you need to specify its member on each dimension. A data value is stored in a single cell in the database. In Figure 25-8, the cell containing the data value for Sales, Jan, Actual is shaded.
In Hyperion Essbase, member combinations are denoted by a cross-dimensional operator. The symbol for the cross-dimensional operator is ->. So Sales, Jan, Actual is written Sales->Jan->Actual.
Figure 25-8: Sales, Jan, Actual Slice of the Database
When Hyperion Essbase calculates the formula "Margin% = Margin % Sales," it takes each Margin value and calculates it as a percentage of its corresponding Sales value.
Hyperion Essbase cycles through the database and calculates Margin% as follows:
For more information on database calculation order, see Defining the Calculation Order.
By default, the default calculation for a database is a CALC ALL of the database outline. CALC ALL consolidates all dimensions and members and calculates all formulas in the outline.
However, you can specify any calc script as the default database calculation. Thus, you can assign a frequently-used script to the database rather than loading the script each time you want to perform its calculation. Also, if you want a calc script to work with settings defined in the Calc Options group of the Database Settings dialog box, you must set the calc script as the default calculation.
Hyperion Essbase displays the Set Default Calc dialog box.
You can calculate a database using any one of these tools:
This section includes information on calculating a database using Hyperion Essbase Application Manager, MaxL, and ESSCMD. For information on calculating a database from Hyperion Essbase Spreadsheet Add-in, see the Hyperion Essbase Spreadsheet Add-in User's Guide.
With Hyperion Essbase Application Manager, you can run the default outline calculation from the desktop.
Figure 25-9: Server Dialog Box
Hyperion Essbase displays the Calculate Database dialog box.
Figure 25-10: Calculate Database Dialog Box
Under Database State, Hyperion Essbase indicates the current calculation state of the database:
The list includes only calc scripts to which you have security access. For information on Hyperion Essbase security privileges, see Managing Security at Global and User Levels.
Hyperion Essbase calculates the database.
Note: | Hyperion Essbase displays a message while it is calculating the database. For lengthy calculations, you may want Hyperion Essbase to perform the calculations in the background. Use the Windows Alt + Tab key combination to switch to another Windows application. While Hyperion Essbase is calculating the database, other Hyperion Essbase Application Manager functions are disabled. |
![]() |
You can use execute calculation in MaxL or the CALC, CALCDEFAULT, and CALCLINE commands in ESSCMD to perform calculations. See the online Technical Reference in the DOCS directory for information.
|
When you cancel a calculation, Hyperion Essbase does one of the following:
How Hyperion Essbase handles the cancellation depends on your Hyperion Essbase Kernel Isolation Level settings. For more information on these settings, see Ensuring Data Integrity.
In order to calculate a database, you must have calculate privileges for the database outline.
If you have calculate privileges, you can calculate any value in the database. With calculate privileges, you can calculate a value even if a security filter denies you read and update privileges. Careful consideration should be given to providing users with calculate privileges.
For more information on providing users with calculate privileges and on security filters, see Managing Security at Global and User Levels.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Copyright © 1991-2000 Hyperion Solutions Corporation. All rights reserved.