To use Cognos product documentation, you must enable JavaScript in your browser.

Example - Perform a Custom Sort

In this topic, you learn how to change the default sorting in a crosstab.

You want to know the answers to these questions:

If you need more help, see Use Custom Sorting.

Steps
  1. Create a new analysis using the Sales and Marketing (cube) package.

  2. Add the following items to the crosstab:

  3. Right-click the 2005 column in the crosstab and click Sort, Descending.

    Note the change in Products. You now want to sort the sales territories in order of profitability for 2005. But if you select Retailers and sort descending, the default will sort based on the summary for all years, even though you are interested in performance for 2005.

  4. Select Retailers in the crosstab.

  5. Open the Custom Sort dialog box.

    See what happens to the top performers when you filter the crosstab using different order methods or when you change the default measure.

  6. Sort in descending order, and under Options, change the value in Based on the column from the default to 2005. Leave the default in By measure as Gross Profit.

    Your analysis will look like this.