Skip Headers

Oracle® Business Intelligence Discoverer Plus User's Guide
10g Release 2 (10.1.2.0.0)
Part No. B13915-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

How to create a new calculation using an analytic function template

Discoverer provides easy-to-use templates for the most popular analytic functions (for more information, see "What analytic function templates are available in Discoverer?"). You use templates to build analytic functions that help you analyze data in powerful ways and make business decisions quickly and easily. For example, you might want to calculate the ranked list position (i.e. rank) of sales outlets based on sales.

You use a template to create an analytic function formula, which is inserted into the definition of a new or existing Discoverer calculation.

To create a new calculation using an analytic function template:

  1. Display the worksheet that you want to analyze.

  2. Choose Tools | Calculations to display the "Edit Worksheet dialog: Select Items tab: Calculations tab".

    Description of tot6.gif follows
    Description of the illustration tot6.gif

    The Calculations tab lists existing calculations, percentages, and totals available in the worksheet. Active calculations are marked with a tick symbol (or check mark) in the Available list and are also displayed in the Selected list.

  3. Click New and select New Calculation from the drop down list to display the "New Calculation dialog".

    Description of calc1.gif follows
    Description of the illustration calc1.gif

  4. Enter a name for the calculation in the What do you want to name this calculation? field.

    Hint: Use a short descriptive name, which will be displayed on the worksheet.

  5. Click Insert Formula from Template to display a pop-up list of pre-defined templates.

    Description of calc5.gif follows
    Description of the illustration calc5.gif

  6. Choose a template from the pop-up list to display a template dialog for the selected analytic function.

  7. Use the template to define the analytic function.

    For example, if you choose the Rank template, you will use the "Rank dialog" to create the formula.

    The underlying SQL statement for the analytic function formula is displayed in the Calculation field at the bottom of the template.

  8. Click OK to save the analytic function and close the analytic function template.

    The SQL statement for the analytic function that you created is transferred to the Calculation field. You might want to modify the SQL statement for the analytic function (e.g. by adding more ORDER BY clauses) or by inserting another function into the Calculation field.

    Description of calc7.gif follows
    Description of the illustration calc7.gif

    The Calculation field displays the underlying SQL statement for the analytic function that you defined.

    Note: You can subsequently modify the calculation (e.g. to add more PARTITION BY clauses) in any of the following ways:

    • by manually editing the formula in the Calculation field

    • by first deleting the formula in the Calculation field, then clicking Insert Formula from Template and recreating the formula

    • by clicking Insert Formula from Template and appending a new formula to the existing formula in the Calculation field

      Note: If you have more than one function in the Calculation field, you must associate the functions (e.g. using + or -).

  9. Click OK to save the details and close the New Calculation dialog.

  10. Click OK to close the Calculations tab and return to the worksheet.

    Discoverer adds the calculation to the worksheet.

Notes