Adding a crosstab to a blank report
About this task
For more information on the dimensions (Measures and Categories) available in the Metrics PowerCube, see PowerCube dimensions. For more information on working with Cognos® Report Studio, see the Report Studio User Guide.
Procedure
- Create a blank report as described in Creating a blank report from the PowerCube model.
- Place a crosstab object in the report layout:
A crosstab displays as a table with areas marked for you to add rows, columns, and measures to the report.
- Click the Toolbox tab.
- In the Toolbox window, select the Crosstab object and drag it to the design area.
- Select the Categories to display in the rows of the crosstab:
In this example, the categories are the years for which "create" events are being counted (the DATE): 2010, 2011, and 2012; each row in the crosstab will represent a year.
- Click the Sources tab.
- In the packages list, expand the METRICS_TRX_CUBE datasource, and then expand the DATE dimension.
- Expand .
- Select 2010 and drag it to the Rows area of the crosstab.
- Select 2011 and drag it to the Rows area of the crosstab, placing it after 2010.
- Select 2012 and drag it to the Rows area of the crosstab, placing it after 2011.
- Select the data series to display in the column of the
crosstab:
In this example, the data series is the type of event being counted: the CREATE; the data series appears in a column of the table (if your report includes multiple data series, each data series would be placed in a different column).
- Return to the METRICS_TRX_CUBE datasource.
- Expand EVENT dimension. , and then expand the
- Select CREATE and drag it to the Columns area of the crosstab.
- Select the Measure to display on column of the crosstab:
In this example, the measure is EVENT_COUNT; each cell within the crosstab will display the number of "create" events for the year represented by the current row.
- Return to the METRICS_TRX_CUBE datasource.
- Expand Measures and select EVENT_COUNT; then drag it to the Measures area of the crosstab.
- Click Save to save the updated report.
- Click Cognos® Viewer; then close the viewer when ready to proceed. to test the report by viewing it in the