## Edit Calculation dialog

Use this dialog to change the way that the currently selected calculation item behaves. For example, to changes its name, description, or formula.

For more information, see:

"What are calculations?"

"Simple calculation examples"

"Oracle8i analytic function examples"

"Oracle9i analytic function examples"

**What do you want to name this calculation?**

Use this field to enter a descriptive name for the calculation item. This name is displayed in calculation lists and on worksheets as the column header of the calculation results column. If you leave this box blank, Discoverer creates a default name for you.

#### Show

Use this drop down list to display calculations, functions, items and parameters that you can use to build your calculation. To include items in the calculation, add them to the calculation box on the right (see Notes below).

#### Paste

Use this button to add the item currently selected in the **Show** list into the **Calculation** box. The item is copied into the **Calculation** box at the right hand side.

#### Calculation

Use this text box to enter the calculation details. To create a calculation, you can either:

- Type the formula directly into the
**Calculation** box.

- Paste items from the
**Show** box on the left into your calculation.

- Click the operator buttons underneath the
**Calculation **box to use them in the calculation.

- Use a combination of the above options.

#### Operator buttons ([+] [-] [x] [/] [%] [(] [)] )

Use these buttons to add operators to the calculation. Operators are copied into the Calculation box above.

#### OK

Use this button to validate the calculation and save the item.

- If the calculation has valid syntax, the calculation is saved and displayed in the Calculations dialog.

- If the calculation has invalid syntax, an error message is displayed. You must correct any syntax errors before you can save the calculation.

#### Notes

- Functions Available

- When you use arithmetic expressions in a calculation, the multiply and divide operators are executed first, regardless of their position in the calculation. If you have more than one operator of the same precedence, they are evaluated from left to right.

For example, the calculation Price - Discount * Quantity is evaluated as Discount*Quantity subtracted from Price. If you use parentheses around the subtraction expression (Price - Discount), the subtraction is executed before the multiplication.