Click the New button. From the drop-down list, choose the type of total for the data.

Working with Discoverer Desktop 5-15 Grand total at right —Calculates the Grand Total for a row and places it to the right of the last column in the crosstab. This option is only available from the Total dialog box for crosstabs. Subtotal at each change in —Calculates the subtotals for a column and places it at each new value for the selected item. Select the item from the drop-down list. For example, the subtotals for Regions appear at the end of the data for each Region. Figure 5–22 Select a Subtotal Placement 7. Now enter a Label for the totals data. You can click the drop-down menu for labels and choose additional options for the title from it. Figure 5–23 Create a Label for Totals Key to Figure 5–23 :

a. Click here and type a Label.

b. You can also select from this drop-down list to add various system values to the

label. The system values from the drop-down list produce labels that can change as the data changes by adding text codes such as “Item” and “Value” to the label when you insert them in the label text. In the actual labels on the table or crosstab, the ampersand 5-16 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Desktop will not appear, and appropriate names from the table or crosstab will be inserted in place of the words “Item” or “Value”. This table shows some examples. If the total calculates for all data points as selected at the top of the dialog box, the labels can appear for each appropriate name. For example, when totaling two items, and you select Insert Item Name Name, labels for both item names appear in the data or crosstab. To remove options from the labels, click in the label text on the dialog box and edit it as you would regular text.

1. Click Wrap Text if you think the label will be too long for the column where it will

appear.

2. Click the Format button to format the Totals data. The Format dialog box appears.

3. Click OK.

You’ll now see the Totals dialog box again with your new total definition listed in it.

5.3.2 Totals and Calculations

When creating your Totals, if you total a Calculation, the Calculation is applied to the Total. Discoverer Desktop does not total the Calculations. For example, in Figure 5–24 , the Profit Item is a Calculation: Sales SUM Cost SUM. The Sum value for Profits is 3.23, 1,150,603 356,087. The SUM value is NOT 9.70, 3.20 + 3.23 + 3.27. Figure 5–24 A Worksheet Total on a Calculation Profits

5.3.3 Editing a Totals Definition

To edit a totals definition: Option Example Sample labels Insert Item Name Latest Data from Item Latest Data from Region Insert Data Point Name Top Performers of Data Top Performers of Profit Sum Insert Value Total Income for Value Total Income for Central Generate Label Automatically Sum Sum; automatic label is the name of the type of calculation e.g., Sum, Count, Standard Deviation Note: If you want Discoverer Desktop to total Calculations rather than apply the Calculations to Totals, contact your Discoverer manager. Working with Discoverer Desktop 5-17

1.

Select the definition you want to edit on the Totals dialog box. 2. Click the Edit button. The Total dialog box appears Figure 5–25 . Figure 5–25 Total Dialog Box 3. Make the changes you want. 4. Click OK. The totals definition is now edited.

5.4 Using Percentages

A typical data analysis task is to calculate Item percentages. To calculate percentages in Discoverer Desktop, use the Percentages option on the Tools menu. Note: Due to rounding of data, percentages may not add up exactly to 100. The amount of rounding depends on the number of decimal places that you specify for data. Use the Format Data dialog box to set the number of decimal places for your data.