Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Using Cognos 8 BI with Rational Portfolio Manager

My-An Nguyen (nguyenm@ca.ibm.com), Software Developer, IBM
Author photo
My-An Nguyen is a software developer on the Rational Portfolio Manager team, where she and her colleague Myriam Matwiy investigated the practical use of Cognos Business Intelligence software with the Rational Portfolio Manager Open Data Access feature.

Summary:  This tutorial provides a sample scenario that shows how to create reports by using IBM® Cognos® 8 Business Intelligence software suite with the Open Data Access tool in Rational Portfolio Manager. Open Data Access is a new feature that provides an easier to understand database model to help you create reports.

Date:  29 Jan 2010
Level:  Intermediate PDF:  A4 and Letter (1653 KB | 35 pages)Get Adobe® Reader®

Activity:  38649 views
Comments:  

Dimensional model

Sample report

So far, you have created a fairly straightforward report. You can also create a report that allows the reader to drill up and drill down, to view different levels of detail for the data, within a predefined hierarchy. For that, you need a dimensional or dimensionally modeled data source.

Using the two tables that you have created in the Extract, transform, and load from the staging to the warehouse schema section, you will change the metadata model in Framework Manager to turn it into a dimensional model. However, with only those two tables, there will not be an ideal hierarchy (such as, for example, "Year – Month – Week – Day"), but the steps shown are still relevant to modeling hierarchies.

Figure 31 shows the sample report that you will create in this section, which enables drilling up and down.


Figure 31. Sample drill up/down-enabled report
Shows various results of drilling up and down

As shown in Figure 31, the report is a cross tab that shows the number of defects opened by project and project status. You can drill down within the project or project state to see more details.


Framework Manager

The types of dimensions with which you can work in the Cognos Framework Manager are regular dimensions and measure dimensions.

A regular dimension contains descriptive and business key information and organizes the information in a hierarchy, forming increasing levels of detail.

A measure dimension is a collection of facts.

For this example, you will start with the metadata model in Framework Manager that you created by using Method 2 (generating the metadata from the database tables) in section Method 2: Model data from the database.

  1. Create a new namespace called Dimensions .
  2. In the Dimensions namespace
    1. Create a Measure Dimension named SCOPE_HEALTH .
      1. Right-click the Dimensions namespace and select Create > Measure Dimension.
      2. In the Dimension Definition window that appears, select the SCOPE_HEALTH query subject in the Import View from the Model Objects pane, and drag it to the Measure pane.
      3. Click OK.
    2. Create a Regular Dimension named PROJECT_DIM .
      1. Right-click the Dimensions namespace and select Create > Regular Dimension.
      2. Drag [Import View].PROJECT_DIM.PROJECT_ID from the Available items pane to the Hierarchies pane.
      3. In the Hierarchies pane, rename all occurrences of PROJECT_ID with PROJECT_DIM .
      4. In the Hierarchies pane, select the last level. You should see in the pane underneath that PROJECT_ID had been given the role of _businessKey. If it has not, then set it to _businessKey.
      5. Drag [Import View].PROJECT_DIM.NAME into the last level in the Hierarchies pane. A small drop-down menu will ask to specify the role of this item. Select _memberCaption, as shown in Figure 32.

Figure 32. Framework Manager - Creating dimensions
Shows the action and selection needed to create
      1. Also drag the REFERENCE_NUMBER, CURRENCY, and EXTERNAL_IDENTIFIER fields into the same level, and then specify their roles as No Role. The result is shown in Figure 33.

Figure 33. Framework Manager - PROJECT_DIM
Shows the Project dimension's composition
      1. Click OK.
    1. Create a second Regular Dimension named STATE_DIM .
      1. Right-click the Dimensions namespace and select Create > Regular Dimension.
      2. Drag [Import View].PROJECT_DIM.PROJECT_ID from the Available items pane to the Hierarchies pane.
      3. In the Hierarchies pane, rename all occurrences of PROJECT_ID to STATE_DIM .
      4. In the Hierarchies pane, select the last level. You should see in the pane underneath that PROJECT_ID had been given the role of _businessKey.
        1. If it has not, then set it to _businessKey.
      5. Drag [Import View].PROJECT_DIM.STATE into the last level in the Hierarchies pane. A small drop-down menu will ask to specify the role of this item. Select _memberCaption. The result is shown in Figure 34.

Figure 34. Framework Manager - STATE_DIM
Shows the State dimension's composition
      1. Click OK.
    1. Package and publish the model, using the Publish the package section as a reference.

Figure 35. Framework Manager - Dimensions model
Shows the final dimensional model structure

Report Studio

After the dimensional model has been published, Report Studio can make use of the hierarchical information. To create the sample drill up or drill down-enabled report shown in Figure 31:

  1. Create a new list report that uses the newly published package.
  2. Drag a Crosstab item from the Toolbox onto the report page.
  3. As shown in Figure 36, drag the PROJECT_DIM hierarchy from the Dimensions.PROJECT_DIM dimension into the Columns section of the crosstab and select Root members in the menu that appears.

Figure 36. Report Studio - Dragging to Crosstab columns
Highlights where to drag dimensions in a crosstab
  1. Drag the STATE_DIM hierarchy from the Dimensions.STATE_DIM dimension into the Rows section of the crosstab, and select Root members in the menu that appears.
  2. Drag the Dimensions.SCOPE_HEALTH.DEFECT_PENDING field into the Measure section of the crosstab (see Figure 37).

Figure 37. Report Studio - Dragging to Crosstab measures
Highlights where to drag measures in a crosstab
  1. Go to Data > Drill Behavior.
    1. In the Basic tab, check the check box for Allow drill-up and drill-down.
    2. Click OK.
  2. Run the report.

In the report, notice that the crosstab headings behave like links. You can explore further in either of these ways:

  • Click the crosstab headings to drill down.
  • Right-click the crosstab headings and use the context menu to specify drilling up or drilling down.

5 of 8 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Business analytics, Rational, Information Management
ArticleID=465978
TutorialTitle=Using Cognos 8 BI with Rational Portfolio Manager
publish-date=01292010
author1-email=nguyenm@ca.ibm.com
author1-email-cc=