Use IBM® Cognos® Report Studio to
create reports with complex layout, formatting, and report user interactions.
Such reports are usually created by professional report authors who
have a good knowledge of the data and tools.
In this
exercise, you will learn how to:
- Create a chart
- Make the report interactive with prompts
You are a business analyst for the Sample Outdoors Company.
You create a chart report in Report Studio to show the performance
of returns over the last few years. You make the report interactive
by adding a prompt.
You will create a report that looks like
the Report Studio sample Returns by Order Method - Prompted
Chart in the GO Data Warehouse (analysis) sample package.
To perform this exercise, you must have the appropriate licensing
and security permissions for this functionality.
Things to
notice:
- When you use Report Studio, data is not live. You must run the
report to view data.
- You can view the XML report specification.
- You can add multilingual capabilities.
Procedure
- Open IBM Cognos Connection:
- Start your Web browser.
- In the address bar, type the URL supplied by your administrator,
and then press Enter. The URL looks something like this: http://servername/cognos
- In the IBM Cognos Welcome page,
click Author advanced reports to open Report
Studio.
- Click Samples, Models, GO Data Warehouse (analysis).
- Click Create new, click Crosstab, and click OK.
- Insert data in the crosstab zones:
- In the Source pane, expand Sales and Marketing (analysis), Returned items, Return reason, and Return reason. Drag Reason description to the Columns zone.
- Under Returned items, expand Returned items. Drag Return quantity to the Measures zone.
- Under Returned items, expand Products, and Products. Drag Product line to the Rows zone.
- Click Run Report to run your report and verify the content.
The report output appears in IBM Cognos Viewer.
Tip: To return to Report Studio, close the IBM Cognos Viewer Web browser.
- Insert another column in the report:
- In the Source pane, expand Sales and Marketing (analysis), Returned items, Time, and Time.
- Drag Year to the column after
the Reason description column.
- Insert a chart in the report:
- In the Source pane, click the Toolbox tab.
- Drag the Chart object below the
crosstab.
- When the Insert Chart window
opens, click the Column chart type.
- Select Fill with data from and
click OK. The data from the
crosstab is automatically added to the chart.
- Click the chart to select it.
- In the Properties pane, under Data properties, select the Query property. Select Query1 from the list. Tip: When you change the Query property to the query that you used for the crosstab, it becomes
easier to find and reuse the same data items for the chart.
- Create a filter to exclude the Wrong product
ordered return reason from the crosstab:
- In the crosstab, click the Reason description column heading.
- On the toolbar, click the arrow next to the Filter icon , and click Create Custom Filter.
- Under Condition, select Do NOT show the following values.
- Under Values, select Wrong product ordered and move it to the Selected
values list.
- Click OK.
- Create a prompt page for the order method to allow users
to filter data in the report and retrieve data only for the order
method they select:
- Click the background of the work area to clear.
- From the Tools menu, click Build Prompt Page.
- Use Ctrl+click to select the Back and Next buttons, and the Double
click to edit text prompt page title (that are automatically
created) and delete them.
- In the Source pane, click the Toolbox tab.
- Drag the Value Prompt object
into the prompt page.
The Prompt Wizard
- Value Prompt window opens.
- Click Next.
- Beside the Package item box,
click the ellipsis (...) button.
- When the Choose Package Item window
opens, expand Sales and Marketing (analysis), Returned items, Order method, and Order method.
- Click the Order method type dimension,
and then click OK.
- Click Next to accept the defaults,
and click Finish.
- Pause the pointer over the Page Explorer button on the Explorer bar. In Report Pages, click Page1 to return
to the report page.
Tip: Click the Prompt Pages folder title to remove or rename a page,
or to edit properties.
- Add a title to the report:
- Double-click the Double click to edit text title area, type Returns by Order Method,
and click OK.
- Save the report:
- From the File menu, click Save As.
- Name the report Returns by Order Method -
Prompted Chart and click Save.
- Run your report and verify the content:
- Click the run report button.
- In the Order method drop-down
list, click E-mail and then click Finish.
The report output appears in IBM Cognos Viewer.
Example
Try on your own:
- Save the report as a template so you can create reports with the
same layout and include different data.
Tip: From the File menu, click Convert to Template and then save the report with a new name.
- Change the chart background color.
Tip: In the work area, click the chart. In the Properties pane, expand Color & Background, click Background Color, and click the ellipsis (...) button
next to Background Color.
- View the XML specification for the report.
Tip: From
the Tools menu, click Show Specification.
What to do next
For information about using Report Studio, see the IBM Cognos Report Studio User Guide.