Creating Calculations Oracle Fusion Middleware Online Documentation Library

Advanced Discoverer Desktop Features 8-9

4. Click the Show button to see the different expressions.

Items —lists the items available to the worksheet. This is helpful because you don’t have to remember the name of an item in order to include it in a formula. Parameters are also listed, and you can use the parameters in a formula as well. Functions —lists a wide range of functions that you can apply to your formula. Figure 8–9 Calculations in the Edit Calculation Dialog Box Key to Figure 8–9 :

a. Select an Item then click Paste to copy the Item into the Calculation box.

b. Click the Functions button to show a list of function folders. To display a list of

functions, click the plus symbol + next to each function folder. Use the Paste button to copy the selected Function into the Calculation box. 5. Click OK and then on the Calculation dialog box, click OK. The Calculation is applied to the worksheet and results appear in a new column. Note: Calculations use Oracle’s standard syntax. See the Oracle SQL Reference Language Reference Manual for a complete description of the syntax. 8-10 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Desktop

8.4 Creating Advanced Conditions

The advanced condition option allows you to build complex conditions for filtering your worksheet data. To create an advanced condition:

1. On the Edit Condition dialog box, click the Advanced button.

The dialog box expands to show buttons to add and delete lines to the condition, and to include the Boolean operators AND, OR, NOT. Figure 8–10 New Condition Dialog Box The Item drop-down list shows the items currently available to the worksheet. Other options from the list are: Create Calculation —click to open the New Calculation dialog box. When you finish creating the Calculation, it appears in the Item section of the condition. For example, if you create a Calculation that computes a Royalty Fee, that Calculation is listed in the Item portion of the condition, and you can then filter the worksheet’s data by the Calculation results. Select Condition —displays a dialog box that lists the conditions currently defined for the worksheet. Select a condition to become the first part of the advanced conditional expression. With this option you can filter the data using several sequential conditions. That is, condition 1 filters the data, and then based on the results from condition 1, condition 2 filters the data. Copy Condition —displays a dialog box that lists the conditions currently defined for the worksheet. Copying a condition inserts it on the line in the New Condition dialog box. You can then edit it, or add other features.

2. To add another line to the condition, click Add.

By default, the two conditional expressions are grouped with the Boolean AND.

3. To change the grouping, click the AND in the expressions, and then click the Or or

Not buttons.