Modifying and Maintaining Cubes |
After you have built a cube, you might find it necessary to add members or measures to the cube. You can add calculated members or measures to a cube in the following ways:
manually by submitting PROC OLAP code with the DEFINE statement. See DEFINE Statement.
using the Calculated Members Wizard
Using the Calculated Members Wizard |
The Calculated Members function can be accessed from the SAS OLAP Cube Studio Actions menu or from the context menu for a cube. Click Calculated Members to open the Calculations dialog box.
In the Calculations dialog box, you can add new calculated members or modify existing members for the selected cube. The list box displays all calculated members that are defined in the metadata for the selected cube. Select Add to launch the New Member Wizard and define a new calculated member.
To modify an existing member, select the member and then click Edit. The Edit a Calculated Member dialog box opens.
When you click Add in the Calculations dialog box, the New Member wizard is launched. In this wizard, you select the type of calculation that you want to create. You can select one of the following types:
Simple calculations to create a simple calculation formula. See Simple Calculations.
Time analysis calculations to create a time-based calculation formula. See Time Calculations.
Custom calculations to enter a custom calculation formula. See Custom Calculations.
On this page, you select the variables to create a simple calculation. You can select one of the following calculation types:
Sum
Difference
Ratio
Percent Increase
Percent Decrease
Distinct Count
If you select Distinct Count, a selection tree is displayed. Each dimension has a node that expands into its hierarchies and then into the levels for each hierarchy. One variable in the hierarchy tree must be selected.
For further information on the Simple Calculations page, see the SAS OLAP Cube Studio Help.
On this page, you select the variables to create a time calculation. You can select one of the following calculation types:
Opening Balance
Closing Balance
Rolling Total
Average Over Time
Compare Parallel Periods
Compare Consecutive Periods
Note: This option is not available if there are no TIME-type dimensions for the cube.
For further information on the Time Calculations page, see the SAS OLAP Cube Studio Help.
On this page, you enter the variables to create a custom calculation. You can enter the following:
specifies a parent dimension for the new calculated member that you are creating. The default dimension is Measures. If you select a dimension other than Measures, this field is initially populated with the unique name for the default hierarchy's ALL member.
specifies a parent member for the new calculated member. Use the Browse button to display a tree of valid members for the dimension. If you select the Browse button and the cube physically exists, you are prompted to log on to an OLAP server, if you haven't already.
Note: If the cube exists, you must connect to the OLAP server so that the valid members can be retrieved from the server. If the cube does not exist or a connection cannot be made to the OLAP server, the valid members displayed in the tree will be the ALL members for each of the hierarchies for the dimension.
specifies a name for the custom calculation.
specifies an MDX formula for the new calculated member.
The Generated MDX text area allows you to view the MDX code that currently exists for the selected cube and any new MDX code that is entered in the Formula text box.
For further information on the Custom Calculations page, see the SAS OLAP Cube Studio Help.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.