A Crosstab Table. Oracle Fusion Middleware Online Documentation Library

4-30 Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Desktop Data Point —The name of the item that will be rearranged as the data is sorted. ColumnRow —Identifies the column that contains the data for sorting when sorting based on data from the left side of the crosstab, or identifies the row that contains the data for sorting when sorting based on data from the top of the crosstab. Click the down arrow to select the specific column or row. Direction —Click the up or down arrows to select the sort direction. Add —Click to add a data point for sorting. See below for more information. Delete —Select an item in the dialog box and click to remove it. You cannot delete all of the items on the left axis on a crosstab. Adding a Data Point When you click the Add button in the Sort Crosstab dialog box, a drop-down list shows you the data points on the crosstab that can be used for sorting. For example, in the figure above, the added data point is Profit SUM. Without adding that data point to the sorting, the crosstab in the example would simply be sorted alphabetically by City down the left side of the crosstab. With the added data point, however, the cities are sorted by Profit SUM from lowest to highest. In other words, the City entry on the dialog box identifies which data you want to sort, and the added data point Profit SUM identifies how you want to sort the cities by profit from lowest to highest. Added data points must always be the first item for sorting. City cannot be above Profit SUM in the example. This is because sorting items by data points makes logical sense, but sorting data points by items does not. To illustrate this concept, it makes sense to sort Cities by Profit because each City has a Profit amount associated with it. However, it does not make sense to sort Profit by City because each profit has only one city associated with it. It would be like trying to sort the profit amounts by “New Yorks” or “Phoenixes” which doesn’t make logical sense. You can add the data point two or more times. This is useful with duplicate data points. In the example, if two cities had exactly the same amount of profit, you could specify how to sort those two duplicated pieces of data low to high or high to low. This type of “sorting within sorting” on a crosstab is helpful for text or other data likely to have duplicate values. For financial data or other variable numeric items, however, sorting within sorting is usually not necessary.