Skip Headers

Oracle Application Server Discoverer Plus User's Guide
10g (9.0.4)

Part Number B10268-01
Go To Table Of Contents
Contents
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Index
Index

Go to previous page Go to next page

Options dialog: Aggregation tab

Use this tab to control how Discoverer populates cells for aggregated values (sometimes referred to as roll-up values). For more information about aggregated values in Discoverer, see "What are aggregated values in Discoverer?".

In most cases, Discoverer calculates aggregated values by simply adding up a series of data points. In some cases however, Discoverer cannot compute aggregated values in this way and requires a more complex calculation to obtain the correct results. For example, if you are using an Oracle8i database, Discoverer cannot compute aggregated values for certain specific non-linear calculations, or worksheet items based on the following SQL functions:

Note: For more information about linear and non-linear calculations in Discoverer, see "What are linear and non-linear calculations?".

In these cases, you might want to use the aggregation options on this tab (for more information about aggregation options, see "Aggregation options") to control how the aggregated values are computed, as follows:

Notes

For more information, see:

"Field level descriptions"

"What are linear and non-linear calculations?"

"Examples of worksheet aggregation in Discoverer"

"Notes on sharing worksheets between Discoverer Desktop and Discoverer Plus/Viewer users"

Field level descriptions

Use these options to specify how you want Discoverer to populate cells for aggregated values. If you clear the Use the aggregation behavior selected by the Discoverer manager check box, the radio button options beneath become active.

Use the aggregation behavior selected by the Discoverer manager

Use this check box to control whether you specify how Discoverer calculates aggregated values, or whether you accept the default Discoverer behavior specified for you by the Discoverer manager, as follows:

Hint: For more information about the Discoverer manager, see "Who is the Discoverer manager and what do they do?".

Aggregation options

If you clear the Use the aggregation behavior selected by the Discoverer manager check box, use these options to manually control how Discoverer populates cells for aggregated values.

What are aggregated values in Discoverer?

Aggregated values in Discoverer are:

What are linear and non-linear calculations?

Examples of worksheet aggregation in Discoverer

The following examples show how the aggregation options affect how Discoverer displays aggregated values:

Example 1: Example of a Rank calculation using an Oracle9i database

In this example (using an Oracle9i database), you want to calculate a ranked list of cities based on profits. You want the highest profits to have the highest rank. You create a Discoverer calculation called 'Rank' with the following formula:

You want Discoverer to calculate the 'Rank' aggregated value as follows:

The worksheet below shows how Discoverer calculates the ranks if you select the Show the aggregated value calculated by the database. The database uses the same aggregation method as Discoverer option on the "Options dialog: Aggregation tab".


Text description of agg1.gif follows.
Text description of the illustration agg1.gif

The table below shows how Discoverer calculates the 'Rank' aggregated values for the different options on the "Options dialog: Aggregation tab".

Check box selected  What value is displayed 

(Oracle9i database only) Show the aggregated value calculated by the database. The database uses the same aggregation method as Discoverer  

Valid ranks for each region and for each city

(as in example above) 

Show <Non-aggregable label>, the "values that cannot be aggregated" option, set on the Sheet Format tab 

<N.A.> 

Show the sum of the values displayed in the contributing cells 

<N.A.>

Note: Discoverer does not linearly aggregate values based on analytic functions. 

Example 2: Example of a weighted margin calculation using an Oracle8i database

In this example (using an Oracle8i database), a worksheet displays profits and sales data for cities in regions. You want to calculate a weighted margin increase of 10% for Chicago and no margin increase for other cities. You create a Discoverer calculation called 'Weighted Profits/Sales' with the following formula:

With an Oracle8i database, Discoverer cannot compute aggregated values for certain specific non-linear calculations, or worksheet items based on CASE SQL statements. Therefore, you cannot display the 'Weighted Profits/Sales' aggregated value as 0.66 (i.e. $112, 538/$171,028). In this scenario, you can either display the non-aggregable label (e.g. N.A.) or compute an aggregated value by simply adding up the 'Weighted Profits/Sales' values to get 4.86. In this example you want to display the non-aggregable label (e.g. N.A.).

The worksheet below shows how Discoverer displays the 'Weighted Profits/Sales' aggregated value as the non-aggregable label 'N.A' if you select the Show <Non-aggregable label>, the "values that cannot be aggregated" option, set on the Sheet Format tab option on the "Options dialog: Aggregation tab".


Text description of agg2.gif follows.
Text description of the illustration agg2.gif

The table below shows how the 'Weighted Profits/Sales' aggregated value is calculated for the different radio button options on the "Options dialog: Aggregation tab".

Check box selected  What value is displayed 

Show <Non-aggregable label>, the "values that cannot be aggregated" option, set on the Sheet Format tab 

<N.A> (as in example above) 

Show the sum of the values displayed in the contributing cells 

4.86 (a simple addition of the Weighted Profits/Sales values) 

Example 3: Example of a weighted margin calculation using an Oracle8i database

In this example (using an Oracle8i database), a worksheet displays profits and sales data for cities in regions. You want to calculate a weighted margin increase of 10% for Chicago and no margin increase for other cities. You create a Discoverer calculation called 'Weighted Profits/Sales' with the following formula:

With an Oracle8i database, Discoverer cannot compute aggregated values for certain specific non-linear calculations, or worksheet items based on CASE SQL statements. Therefore, you cannot display the 'Weighted Profits/Sales' aggregated value as 0.66 (i.e. $112, 538/$171,028). In this scenario, you can either display the non-aggregable label (e.g. N.A.) or compute an aggregated value by simply adding up the 'Weighted Profits/Sales' values to get 4.86. In this example you want to compute an aggregated value by simply adding up the 'Weighted Profits/Sales' values to get 4.86.

The worksheet below shows how Discoverer calculates the 'Weighted Profits/Sales' aggregated value as 4.86 if you select the Show the sum of the values displayed in the contributing cells option on the "Options dialog: Aggregation tab".


Text description of agg3.gif follows.
Text description of the illustration agg3.gif

The table below shows how the 'Weighted Profits/Sales' aggregated value is calculated for the different radio button options on the "Options dialog: Aggregation tab".

Check box selected  What value is displayed 

Show <Non-aggregable label>, the "values that cannot be aggregated" option, set on the Sheet Format tab 

<N.A> 

Show the sum of the values displayed in the contributing cells 

4.86 (as in example above) 

Example 4: Example showing how Discoverer does not aggregate repeated values using an Oracle9i database

This example (using an Oracle9i database) shows how Discoverer does not aggregate repeated values, whichever aggregation option you choose on the "Options dialog: Aggregation tab".

In this example, a worksheet displays sales values (i.e. the Sales SUM item) for regions for each year. The worksheet also displays the target sales value set by the company (i.e. the Target Sales SUM item) for each region. Each region has the same target sales value.

You create a Discoverer total to calculate total values for each year.

It is not meaningful to aggregate Target Sales Sum values at the Year level because there is no logical relationship between the Sales item and the Target Sales item. If you are familiar with entity-relationship diagrams, the figure below shows that this is because the Sales SUM item is dimensioned by store (i.e. in the Sales Facts table) but the Target Sales Sum item is dimensioned by date (i.e. in the Date table).


Text description of agg5.gif follows.
Text description of the illustration agg5.gif

Therefore, you want Discoverer to display a non-aggregable label (e.g. N.A.) for the yearly total values for the Target Sales Sum item. The worksheet below shows how Discoverer displays a non-aggregable label (i.e. N.A.) for the yearly totals for the Target Sales Sum item (regardless of which aggregation option you choose on the "Options dialog: Aggregation tab").


Text description of agg4.gif follows.
Text description of the illustration agg4.gif

The table below shows how Discoverer the Target Sales Sum aggregates are calculated for the different radio button options on the "Options dialog: Aggregation tab".

Check box selected  What value is displayed 

(Oracle9i database only) Show the aggregated value calculated by the database. The database uses the same aggregation method as Discoverer  

<N.A.> 

Show <Non-aggregable label>, the "values that cannot be aggregated" option, set on the Sheet Format tab 

<N.A.> 

Show the sum of the values displayed in the contributing cells 

<N.A.> 

Notes on sharing worksheets between Discoverer Desktop and Discoverer Plus/Viewer users

This section explains how Discoverer computes aggregated values if you share Discoverer worksheets with other Discoverer Desktop or Discoverer Plus/Viewer users.

Note: If a potential fan trap situation exists, make sure that Discoverer users specify the same fan trap settings (for more information, see "About fan traps").

About sharing a Discoverer worksheet between Discoverer Plus users

To make sure that a Discoverer worksheet contain the same aggregated values regardless of which Discoverer Plus user opens it, do one or both of the following:

About sharing a Discoverer worksheet between Discoverer Plus and Discoverer Desktop users

If you want to share a Discoverer worksheet between Discoverer Plus and Discoverer Desktop, note the following:


Go to previous page Go to next page
Oracle
Copyright © 1999, 2003 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Index
Index