When the calculated item or group is complete, click OK.

5-12 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Enterprise Edition What are Calculated Items? A calculated item is a calculation between members, which is represented as a single member. A calculated item enables you to override the default aggregation rule that is specified in the Oracle BI repository, and for an existing analysis, the aggregation rule chosen by the designer. You can define a calculated item using a custom formula which is the default or by combining selected members with a function for example, SUM. A calculated item is a user-defined member of a column. A calculated item can contain members or other calculated items. Calculated items are always displayed at the bottom of the column list in the order in which they were added as shown in the Selection Steps pane. You can save a calculated item to the catalog and reuse it. A calculated item is useful when you want to view and manipulate a set of members as a single entity. For example, you might define calculated members for the following: ■ Key accounts in a geographic region ■ High-end products ■ Non-standard time periods, such as the first three weeks in September You can create calculated items for columns in various places. Calculations differ from the default aggregation rules that are applied to measures, as described in Adding Totals to Tables and Pivot Tables . Internally, calculated items are processed as SQL SELECT statements, and the indicated functions are performed on the result set. For more information about SQL functions, see Appendix D, Logical SQL Reference. . How Will Calculated Items Created in Previous Releases Be Upgraded? In previous releases prior to 11g of Oracle BI EE, when you created a calculated item in a pivot table, that calculated item applied only to that pivot table for that analysis. If you upgrade from a previous release prior to 11g, then all calculated items are automatically converted to selection steps, which apply to all views for an analysis. For more information, see What are Filters and Selection Steps? Creating Groups and Calculated Items Use the following procedure to create a calculated item or group. To create a calculated item or group: 1. Click the button to create a calculated item or group. The button is available in multiple locations. The following list provides a few of these locations: ■ In the toolbar of the view editor, click the New Calculated Item button or the New Group button. ■ In the Layout pane, in the view-type Rows or Columns area, click the More Options button to the right of a column name, then select New Calculated Item . You can also create calculated items and groups by clicking the Then, New Step link in the Selection Steps pane . 2. Complete the appropriate dialog, either New Calculated Item dialog or New Group dialog .

3. When the calculated item or group is complete, click OK.

Filtering and Selecting Data for Analyses 5-13 If any errors are detected, then a message is displayed. Correct the error and click OK again. Editing Groups and Calculated Items You can edit groups and calculated item in various ways: ■ In the Selection Steps pane , click the link for the calculated item or group, then click Edit to display the appropriate dialog. ■ If you have saved the object to the catalog, then select the object in the Catalog pane and click Edit to display the appropriate dialog. The value of a group or calculated item might be affected by filters and selection steps, as described in the following list: ■ Filters — A group or calculated item is evaluated using only those members that have not been removed using filters. For example, if you have a calculated item for SUMEAST + WEST but WEST is removed through a filter, then only the EAST sum is included for the calculated item. If all members have been removed, then a null value is returned, which shows as an empty cell in a table or pivot table. ■ Selection steps — When you create selection steps, you can add a group or a calculated item in a step. Subsequent Keep Only or Remove steps might reference members that were included in the group or calculated item. – A group list is affected by members that are kept or removed in subsequent steps, but the group outline value remains the same. For example, suppose the MyNewYork group contains Albany and Buffalo and its value is 100. Suppose Albany is removed in a later step. The value of the MyNewYork group remains at 100, but Albany is no longer listed with the group. – A calculated item is not affected by members that are kept or removed in subsequent steps, because removals can affect the components of the formula. Adding a Group to Another Analysis You can add a group also known as a saved selection in other products to the same column on which it was created in another analysis. The group can be either a list of members or a set of selection steps. For information on these groups, see Saving Selection Steps as a Group Object . The following procedure describes how to add the group using the Results tab, but you can do so anywhere that the Catalog pane is displayed. You can also add a group using the following means: Note: You might encounter an error when using groups when Oracle OLAP is the data source for the analysis. If the group is included in a view and an error message is displayed, then the problem is likely that a measure column in that analysis uses an external aggregation. Check with the administrator about implementing one of the following possible solutions: ■ Explicitly specify the aggregation rule for the measure in the repository. ■ Create the appropriate group of values as a dimension member in the Oracle OLAP analytic workspace. 5-14 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Enterprise Edition ■ In the Edit Member Step dialog, select Start with Group or Calculated Item in the Action box, then select the group from the Catalog pane in the Available list. ■ In the Selection Steps pane, click Then, New Step for the appropriate column, select Add Groups or Calculated Items, select Select Existing Groups and Calculated Items , and select the group in the resulting dialog. To add a group to another analysis using the Catalog pane: 1. On the Results tab, display an analysis that contains the same column to which you want to apply the selections from a group. 2. Locate the Catalog pane and navigate to the appropriate folder that holds the saved group.

3. Select the group and click the Add More Options button in the toolbar of the