In This Section:
Calculating Members with Different Operators
Some information in this chapter applies only to block storage databases and is not relevant to aggregate storage databases.
Also see:
When you tag a dimension as a specific type, the dimension can access built-in functionality designed for that type. For example, if you define a dimension as accounts, you can specify accounting measures for members in that dimension. Essbase calculates the two primary dimension types, time and accounts, before other dimensions in the database. By default, all dimensions are tagged as none.
The following sections describe the dimension types.
To set a dimension type, see “Setting the Dimension Type” in the Oracle Essbase Administration Services Online Help.
Tag a dimension as time if it contains members that describe how often you collect and update data. In the Sample.Basic database, for example, the Year dimension is tagged as time, as are its descendants—all Qtr members and the months (such as Jan). The time dimension also enables several accounts dimension functions, such as first and last time balances.
Rules when tagging a dimension as time:
Tag a dimension as accounts if it contains items that you want to measure, such as profit or inventory.
Rules when tagging a dimension as accounts:
All members in the accounts dimension inherit the accounts property.
You can specify that members of the accounts dimension are calculated on the second pass through an outline. See Setting Two-Pass Calculations.
You can create an outline that does not have an accounts dimension.
To tag a dimension as accounts, see “Tagging an Accounts Dimension” in the Oracle Essbase Administration Services Online Help.
The following sections describe built-in functionality for accounts dimensions.
If an accounts dimension member uses the time balance property, it affects how Essbase calculates the parent of that member in the time dimension. By default, a parent in the time dimension is calculated based on the consolidation and formulas of its children. For example, in the Sample.Basic database, the Qtr1 member is the sum of its children (Jan, Feb, and Mar). However, setting a time balance property causes parents, for example Qtr1, to roll up differently.
To set time balance properties, see “Setting Time Balance Properties” in the Oracle Essbase Administration Services Online Help.
Example of Time Balance as None
”None” is the default value. When you set the time balance property as none, Essbase rolls up parents in the time dimension in the usual way—the value of the parent is based on the formulas and consolidation properties of its children.
Example of Time Balance as First
Set the time balance as “first” when you want the parent value to represent the value of the first member in the branch (often at the beginning of a time period).
For example, assume that a member named OpeningInventory represents the inventory at the beginning of the time period. If the time period was Qtr1, OpeningInventory represents the inventory at the beginning of Jan; that is, the OpeningInventory for Qtr1 is the same as the OpeningInventory for Jan. For example, if you had 50 cases of Cola at the beginning of Jan, you also had 50 cases of Cola at the beginning of Qtr1.
Tag OpeningInventory as first, as shown in the following example consolidation:
OpeningInventory (TB First), Cola, East, Actual, Jan(+), 50 OpeningInventory (TB First), Cola, East, Actual, Feb(+), 60 OpeningInventory (TB First), Cola, East, Actual, Mar(+), 70 OpeningInventory (TB First), Cola, East, Actual, Qtr1(+), 50
Example of Time Balance as Last
Set the time balance as “last” when you want the parent value to represent the value of the last member in the branch (often at the end of a time period).
For example, assume that a member named EndingInventory represents the inventory at the end of the time period. If the time period is Qtr1, EndingInventory represents the inventory at the end of Mar; that is, the EndingInventory for Qtr1 is the same as the EndingInventory for Mar. For example, if you had 70 cases of Cola at the end of Mar, you also had 70 cases of Cola at the end of Qtr1.
Tag EndingInventory as last, as shown in the following example consolidation:
EndingInventory (TB Last), Cola, East, Actual, Jan(+), 50 EndingInventory (TB Last), Cola, East, Actual, Feb(+), 60 EndingInventory (TB Last), Cola, East, Actual, Mar(+), 70 EndingInventory (TB Last), Cola, East, Actual, Qtr1(+), 70
Example of Time Balance as Average
Set the time balance as “average” when you want the parent value to represent the average value of its children.
For example, assume that a member named AverageInventory represents the average of the inventory for the time period. If the time period was Qtr1, then AverageInventory represents the average of the inventory during Jan, Feb, and Mar.
Tag AverageInventory as average, as shown in the following example consolidation:
If you set the time balance as first, last, or average, set the skip property to tell Essbase what to do when it encounters missing values or values of 0.
Table 15 describes how each setting determines what Essbase does when it encounters a missing or zero value.
Table 15. Skip Properties
Setting | Essbase Action |
---|---|
Skips data that equals zero when calculating the parent value. | |
Skips #MISSING data and data that equals zero when calculating the parent value. |
If you mark a member as last with a skip property of missing or missing and zeros, the parent of that time period matches the last nonmissing child. In the following example, EndingInventory is based on the value for Feb, because Mar does not have a value.
Variance reporting properties determine how Essbase calculates the difference between actual and budget data in a member with the @VAR or @VARPER function in its member formula. Any member that represents an expense to the company requires an expense property.
When you are budgeting expenses for a time period, the actual expenses should be less than the budget. When actual expenses are greater than budget expenses, the variance is negative. The @VAR function calculates Budget – Actual. For example, if budgeted expenses are $100, and you spend $110, the variance is -10.
When you are budgeting nonexpense items, such as sales, the actual sales should be more than the budget. When actual sales are less than budget, the variance is negative. The @VAR function calculates Actual – Budget. For example, if budgeted sales were $100, and you made $110 in sales, the variance is 10.
Currency conversion properties define categories of currency exchange rates. These properties are used only in currency databases on members of accounts dimensions. See Designing and Building Currency Conversion Applications.
Use country dimensions to track business activities in multiple countries. If you track business activity in the U.S. and Canada, for example, the country dimension should contain states, provinces, and countries. If a dimension is tagged as country, you can set the currency name property. The currency name property defines what type of currency this market region uses.
In a country dimension, you can specify the currency used in each member. For example, in the Interntl application and database shipped with Essbase, Canada has three markets—Vancouver, Toronto, and Montreal—which use Canadian dollars.
This dimension type is used for currency conversion applications. See Designing and Building Currency Conversion Applications.
Use currency partition members to separate local currency members from a base currency defined in the application. If the base currency for analysis is U.S. dollars, for example, the local currency members would contain values based on the currency type of the region, such as Canadian dollars.
This dimension type is used for currency conversion applications. See Designing and Building Currency Conversion Applications.
Use attribute dimensions to report and aggregate data based on characteristics of standard dimensions. In the Sample.Basic database, for example, the Product dimension is associated with the Ounces attribute dimension. Members of the Ounces attribute dimension categorize products based on their size in ounces.
Review the rules for using attribute dimensions in Working with Attributes.
Member consolidation properties, which are listed in Table 16, Consolidation Operators, determine how children roll up into their parents. By default, new members are given the addition (+) operator, meaning that members are added. For example, Jan, Feb, and Mar figures are added and the result stored in their parent, Qtr1.
Essbase does not use consolidation properties with members of attribute dimensions. See Calculating Attribute Data.
Table 16. Consolidation Operators
When siblings have different operators, Essbase calculates the data in top-down order. The following section describes how Essbase calculates the members listed below:
Parent1 Member1 (+) 10 Member2 (+) 20 Member3 (-) 25 Member4 (*) 40 Member5 (%) 50 Member6 (/) 60 Member7 (~) 70
Essbase calculates Member1 through Member4 as follows:
If the result of this calculation is X, Member5 consolidates as follows:
If the result of the Member1 through Member4 calculation is Y, Member6 consolidates as follows:
Because Member7 is set to No Consolidation(~), Essbase ignores Member7 in the consolidation.
You can determine how and when Essbase stores the data values for a member. For example, you can tell Essbase to calculate the value for a member only when a user requests it, and then discard the data value. Table 17 describes each storage property.
Table 17. Choosing Storage Properties
To set member storage properties, see “Setting Member Storage Properties” in the Oracle Essbase Administration Services Online Help.
Stored members contain calculated values that are stored with the member in the database after calculation. By default, members are set as stored.
When a member is Dynamic Calc, Essbase does not calculate the value for that member until a user requests it. After the user views it, Essbase does not store the value for that member. If you tag a member as Dynamic Calc and Store, Essbase performs the same operation as for a Dynamic Calc member but then stores the data value. See Dynamically Calculating Data Values.
Essbase automatically tags members of attribute dimensions as Dynamic Calc. You cannot change this setting.
Label only members have no associated data. Use them to group members or to ease navigation and reporting from the Spreadsheet Add-in. Typically, you should give label only members the “no consolidation” property. See Setting Member Consolidation.
You cannot associate attributes with label only members. If you tag as label only a base dimension member that has attribute associations, Essbase removes the attribute associations and displays a warning message.
The data values associated with a shared member come from another member with the same name. The shared member stores a pointer to data contained in the other member, and the data is stored only once. To define a member as shared, an actual nonshared member of the same name must exist. For example, in the Sample.Basic database, the 100-20 member under 100 stores the data for that member. The 100-20 member under Diet points to that value.
Shared members typically are used to calculate the same member across multiple parents; for example, to calculate a Diet Cola member in both the 100 and Diet parents.
Using shared members lets you use members repeatedly throughout a dimension. Essbase stores the data value only once, but it displays in multiple locations. Storing the data value only once saves space and improves processing efficiency.
To tag a member as shared, see “Setting Member Storage Properties” in the Oracle Essbase Administration Services Online Help.
Use the following sections to learn more about shared members.
Note:
Members with the same name may be duplicate members instead of shared members. See Creating and Working With Duplicate Member Outlines.
Rules when creating shared members:
Shared members must be in the same dimension. For example, both 100-20 members in the Sample.Basic database are in the Product dimension.
An unlimited number of shared members can have the same name.
You can create a shared member for a member with a duplicate member name. Specify the duplicate member name for which you want to create the shared member. The qualified name of the duplicate member, on which the shared member is based, is displayed in the Member Properties dialog box. See “Defining Shared Members” in the Oracle Essbase Administration Services Online Help.
If accounts properties are assigned to shared members, the values for those accounts properties are taken from the base member, even if the accounts properties on the shared member are changed.
An actual member must be located in a dimension before its shared member.
Avoid complex relationships between actual and shared members that will be part of an attribute calculation, or a calculation may return unexpected results. See Understanding Attribute Calculation and Shared Members.
Note:
You cannot create a shared member and the member on which it is based under the same parent. In a duplicate member outline, siblings must be unique.
Essbase retrieves shared members during drill-down, depending on their location in the spreadsheet. Essbase follows three rules during this type of retrieval:
Example of Shared Members from a Single Dimension
If you create a test dimension with all shared members based on the members of the dimension East from the Sample.Basic outline, the outline would be similar to the following:
If you retrieve only the children of East, all results are from stored members because Essbase retrieves stored members by default.
If, however, you retrieve data with the children of test above it in the spreadsheet, Essbase retrieves the shared members:
If you move test above its last two children, Essbase retrieves the first three children as shared members, but the last two as stored members. Similarly, if you insert a member in the middle of the list above which was not a sibling of the shared members (for example, California inserted between Florida and Connecticut), Essbase retrieves shared members only between the nonsibling and the parent (in this case, between California and test).
Example of Retrieval with Crossed Generation Shared Members
You can modify the Sample.Basic outline to create a shared member whose stored member counterpart is a sibling to its own parent:
If you create a spreadsheet with shared members in this order, Essbase retrieves all the shared members, except it retrieves the stored member West, not the shared member west:
Essbase retrieves the members in this order because test is a parent of west and a sibling of west’s stored member counterpart, West.
The shared member property defines a shared data relationship explicitly. Some members are shared even if you do not explicitly set them as shared. These members are implied shared members.
Essbase assumes (or implies) a shared member relationship in the following situations:
A parent has only one child. In this situation, the parent and the child contain the same data. Essbase ignores the consolidation property on the child and stores the data only once—thus the parent has an implied shared relationship with the child. In the following example, the parent 500 has only one child, 500-10, so the parent shares the value of that child.
A parent has only one child that consolidates to the parent. If the parent has four children, but three are marked as no consolidation, the parent and child that consolidates contain the same data. Essbase ignores the consolidation property on the child and stores the data only once—thus the parent has an implied shared relationship with the child. In the following example, the parent 500 has only one child, 500‑10, that rolls up to it. The other children are marked as No Consolidate(~), so the parent implicitly shares the value of 500‑10.
If you do not want a member to be shared implicitly, mark the parent as Never Share so that the data is duplicated instead. See Understanding Shared Members for an explanation of how shared members work.
An alias is an alternate name for a member or shared member. For example, members in the Product dimension in the Sample.Basic database are identified both by product codes, such as 100, and by more descriptive aliases, such as Cola. Aliases, stored in alias tables, can improve the readability of outlines or reports.
You can set more than one alias for a member using alias tables. For example, you can use different aliases for different kinds of reports—users may be familiar with 100-10 as Cola, but advertisers and executives may be familiar with it as The Best Cola. This list shows products in the Sample.Basic database that have two descriptive alias names:
Product Default Long Names
100-10 Cola The Best Cola
100-20 Diet Cola Diet Cola with Honey
100-30 Caffeine Free Cola All the Cola, none of the Caffeine
Essbase does not support aliases for Hybrid Analysis-enabled members.
Aliases are stored in one or more tables as part of a database outline. An alias table maps a specific, named set of alias names to member names. When you create a database outline, Essbase creates an empty alias table named Default. If you do not create any other alias tables, the aliases that you create are stored in the Default alias table.
You can create an alias table for each set of outline members. When you view the outline or retrieve data, you can use the alias table name to indicate which set of alias names you want to see. Identifying which alias table contains the names that you want to see while viewing an outline is called making an alias table the active alias table. See Setting an Alias Table as Active.
For Unicode-mode applications, setting up a separate alias table for each user language enables users to view member names in their own language. See Understanding the Essbase Unicode Implementation.
You can provide an alias for any member. Alias names must follow the same rules as member names. See Naming Restrictions for Dimensions, Members, and Aliases.
You can use any of the following methods to create aliases in an existing alias table:
To manually assign an alias to a member while editing an outline, see “Creating Aliases for Dimensions and Members” in the Oracle Essbase Administration Services Online Help.
To use dimension build and a data source to add aliases to an alias table, see “Defining a Rules File for Adding Aliases” in the Oracle Essbase Administration Services Online Help.
To import alias values from an alias table source file created in a predefined format, see Importing and Exporting Alias Tables.
Named alias tables enable you to display different aliases in different situations. See Alias Tables. While working with alias tables, you can perform the actions described in the following sections.
An alias table contains a list of aliases to use for outline members. These restrictions apply:
The naming conventions for alias table names are the same as those for dimensions.
See Naming Restrictions for Dimensions, Members, and Aliases.
Name-length restrictions depend on the Unicode-related mode of the application.
See Limits..
To create an alias table, see “Creating Alias Tables” in the Oracle Essbase Administration Services Online Help.
A new alias table is empty. To add aliases to an alias table and assign them to members, see Creating Aliases.
The active alias table contains the aliases that Essbase currently displays in the outline.
To copy an alias table, the table must be persisted in the database directory. To copy artifacts that are not persisted in the database directory, use the EXPORT ESSCMD command.
You can delete an alias table from the outline, or you can clear all the aliases from an alias table without deleting the alias table itself. To clear or delete alias tables, see “Deleting and Clearing Alias Tables” in the Oracle Essbase Administration Services Online Help.
You can import a correctly formatted text file into Essbase as an alias table. Alias table import files have the .alt extension. Alias table import files should have the following structure:
The first line in the file starts with $ALT_NAME. Add one or two spaces followed by the name of the alias table. If the alias table name contains a blank character, enclose the name in single quotation marks.
Each line between the first and the last lines contains two values separated by one or more spaces or tabs. The first value must be the name of an existing outline member; the second value is the alias for the member.
Any member or alias name that contains a blank or underscore must be enclosed in double quotation marks.
The following is an example of an alias table import file:
You can also export an alias table from the Essbase outline to a text file. The export file contains aliases and the corresponding member names—qualified member names for duplicate members.
By default, Essbase calculates outlines from the bottom up—first calculating the values for the children and then the values for the parent. Sometimes, however, the values of the children may be based on the values of the parent or the values of other members in the outline. To obtain the correct values for these members, Essbase must first calculate the outline and then recalculate the members that are dependent on the calculated values of other members. The members that are calculated on the second pass through the outline are called two-pass calculations.
See Using Bottom-Up Calculation.
For example, to calculate the ratio between Sales and Margin, Essbase needs first to calculate Margin, which is a parent member based on its children, including Sales. To ensure that the ratio is calculated based on a freshly calculated Margin figure, tag the Margin % ratio member as a two-pass calculation. Essbase calculates the database once and then calculates the ratio member again. This calculation produces the correct result.
Although two-pass calculation is a property that you can give to any nonattribute member, it works only on the following members:
If two-pass calculation is assigned to other members, Essbase ignores it.
You can apply formulas to standard dimensions and members. You cannot set formulas for attribute dimensions and their members. The formula determines how Essbase calculates the outline data. See Developing Formulas.
You can create names for generations and levels in an outline, such as a word or phrase that describes the generation or level. For example, you might create a generation name called Cities for all cities in the outline. See Dimension and Member Relationships.
Use generation and level names in calculation scripts or report scripts wherever you need to specify either a list of member names or generation or level numbers. For example, you could limit a calculation in a calculation script to all members in a specific generation. See Developing Calculation Scripts.
You can define only one name for each generation or level. When you name generations and levels, follow the same naming rules as for members. See Naming Restrictions for Dimensions, Members, and Aliases.
You can create user-defined attributes (UDA) for members. For example, you might create a UDA called Debit. Use UDAs in the following places:
Calculation scripts. After you define a UDA, you can query a member for its UDA in a calculation script. For example, you can multiply all members with the UDA Debit by –1 so that they display as either positive or negative (depending on how the data is currently stored). See Developing Calculation Scripts.
Data loading. You can change the sign of the data as it is loaded into the database based on its UDA. See Flipping Field Signs.
To perform a calculation, selectively retrieve data based on attribute values, or provide full crosstab, pivot, and drill-down support in the spreadsheet, create attribute dimensions instead of UDAs. See Comparing Attributes and UDAs.
A UDA name can be the same as a member, alias, level, or generation name. Follow the same naming rules as for members. See Naming Restrictions for Dimensions, Members, and Aliases.
A UDA applies to the specified member only. Descendants and ancestors of the member do not automatically receive the same UDA.