Add Members as Siblings of the Lowest Level
When you need to add new members to the Essbase outline but the source data does not specify their ancestors, you can design a dimension build rule that adds them as siblings of the lowest-level existing member. Use the Add as sibling of lowest level dimension build method.
If you use this build method, when Essbase encounters a new member in the source data, it scans the outline for the level 0 branch of members and adds the new member(s) as a sibling of these members.
Note:
If the outline contains multiple groups of level 0 members, Essbase adds the new member(s) to the first group that it encounters.
For this dimension build example, assume you want to add A100-20 and A100-99 as siblings of the lowest level members in the Measures dimension.
Assume you want to use the following text data file to add the new members:
100-10 Texas A100-10 100 120 100
200-20 Texas A100-99 111 154 180
You can create the following rule file to build the dimensions using the Add as a sibling at the lowest level build method.
To recreate this example,
-
Import/build the Sample Basic cube, using the application workbook available from the gallery in the file catalog on the Essbase Server.
-
Create a tab-delimited data file like the following, name it
siblow.txt
, and upload it to the Sample Basic cube directory.100-10 Texas A100-10 100 120 100 200-20 Texas A100-99 111 154 180
-
On the Applications page, expand the application (Sample).
-
From the Actions menu, to the right of the cube name (Basic), launch the inspector.
-
Select the Scripts tab, and then click Rules.
-
Click Create and choose Dimension Build (Regular).
-
In the New Rule dialog,
-
Enter a rule name; for example, siblow.
-
For Source Type select File, click Catalog and navigate to
siblow.txt
.When you click Catalog, the file is expected to be located in the cube directory on the Essbase Server by default, so you must have already uploaded it using the Files section of the Essbase web interface. If the file is on your client machine, click File Browser to locate the file.
-
Leave the Header Record Number and Dimension Build Record Number fields as 0. Header records are not useful for dimension builds.
-
Change the Delimiter value from Comma to Tab.
-
Click Proceed.
-
The dimension build rule opens with undefined fields, and preview data (from the text file) populating the grid below the fields.
-
-
As this is a new rule, there are no dimensions associated yet.
- Click Dimensions.
- Select or type the dimension name Measures, and click Add.
- Click Dimensions.
-
Now you need to define the build method and check other dimension build operational instructions. Click Measures to edit the properties.
-
Change Build Method to Add as sibling of lowest level, and leave the Member Name field below it blank.
Click OK.
-
Click the Dimension selector in Field 3, and select Measures.
-
Leave the Type selector of Field 3 blank.
-
Select Fields 1 - 6. To do this, click on the inactive header area labeled Field 1, hold down Shift key, and click the Field 6 header area. Now hold the Control key and click field 3 to deselect it. Click Ignore.
As a result, this rule will only operate on the third field of each record. Ignoring fields can be helpful when you don't need to use every field in the source for your dimension build, yet you don't want to prepare different sources.
-
Verify the rule, then save and close. If there are any errors, see Requirements for Valid Dimension Build Rule Files.
-
Run the dimension build job.
-
View the outline, and inspect the children of Margin (in the Measures dimension) to confirm that the members were added.
Table 14-2 Summary of Adding Members as Siblings of the Lowest Level
Field | Value | More Information |
---|---|---|
Measures dimension |
Select the Add as sibling of lowest level build method |
|
Field 3 (Measures) |
|
|
Fields 1, 2, 4, 5, and 6 |
Ignore the fields |
You can ignore all fields of a specified column of the source data. See Ignore Fields. |