Pivoting Data on a Table

Pivoting, Drilling, and Sorting Data 4-5

b. The table now displays profits for all three Regions.

2. Drag the pointer down onto the table where you want the page axis item to go. The pointer changes to a left-right arrow indicating you can put the page axis item into the table body. 3. Release the mouse button. The page axis item becomes a column in the table. You can insert the page axis item into a table at three locations: Left-most column —drag the pointer onto the first column in the table. The page axis item is inserted to become the first column. Middle columns —drag the pointer onto a column head. The page axis item is inserted to the left of that column. Right-most column —drag the pointer onto the blank space after the last column. The page axis item is added as the right most column of the table. Figure 4–7 Column locations for inserting Items Key to Figure 4–7 :

a. The left-most column.

b. The middle columns.

c. The right-most colum.

4.1.3 Pivoting Data on a Crosstab

Because the data relationships on a crosstab depend on the intersection of the rows and columns, pivoting data from one axis to another creates a new set of data relationships. In addition, the new arrangement can add levels of data to an axis. For example, if the data on the side axis is organized into three levels such as Region, City, and Store Name, pivoting the Year item to the side axis adds a fourth level of data to that axis, see Figure 4–8 for an example. To pivot data on a crosstab:

1. Click the axis item marker of the item to pivot.

2. Drag the pointer to its position on the new axis. You can drag the pointer onto the

axis marker or onto one of the rows at that level. The direction of the pointer indicates how the item will pivot from horizontal to vertical, or vice versa.

3. Let go of the mouse button. The item moves to the new axis.

4-6 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Desktop Figure 4–8 Pivot Example From the Top Axis to the Side Axis Key to Figure 4–8 :

a. The Calendar Date Year Item is dragged to a new position on the left axis.

b. The table now displays profits in a single column, and includes sub-totals for each

Calendar Date Year. Notice that the new crosstab now has only one column for the Profit SUM. The Calendar Date Year 2000 data is further down on the side axis. Scroll down the page to see it.

4.1.3.1 Producing erroneous results when pivoting

As you can see, it is easy to pivot data in Discoverer Desktop. However, sometimes this ease of use also makes it easy to produce erroneous results. For example, in a Crosstab layout, if you remove everything from your left axis or your top axis, you can produce a meaningless table, see example Figure 4–9 .