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

Example - Create a Query

Use Query Studio to retrieve information from a data source when you want to create reports that answer simple business questions. Also use Query Studio to publish reports for audiences who do not require complex layout or formatting.

In this exercise, you will learn how to

You are a business analyst for the Great Outdoors Company. You want to create a report that shows which products have the highest rate of return and how much revenue was lost from product returns.

To perform this exercise, you must have the appropriate licensing and security permissions.

Things to Notice

Data that you can add to the report has a different icon depending on the data type.

The reports that you create in Query Studio can be viewed and edited in Report Studio.

Steps
  1. Open IBM Cognos Connection:

  2. In the IBM Cognos 8 Welcome page, click Query my data, and select the GO Data Warehouse (analysis) package.

    A blank report appears.

  3. Add columns to the report:

  4. Create a calculation to show the lost revenue (Return quantity * Unit cost = Lost revenue):

  5. Format the calculated column that you added:

  6. Create a calculation to show the percentage of returns (Return quantity / Quantity)*100):

  7. Sort the % Returned column in descending order:

  8. Apply conditional formatting to highlight products with a lost revenue greater than $200,000:

    The cells with a lost revenue greater than $200,000 appear with a red background.

  9. Apply a template to the report:

    The report appears with the styles from the template.

  10. Add a title to the report:

  11. Save the report:

    The final report looks like this:

    Notice that the Star Gazer 2 tent has the highest lost revenue rate.

Try on Your Own
For More Information

For information about using Query Studio, see the Query Studio online help.