You can build a report by adding SQL from an
external source, such as another report.
If
you edit the SQL of a query, you must change the Processing property
for that query to Limited Local.
Procedure
-
Create a new report and choose the Blank template.
- In the navigation menu, click Report and then click
Queries.
-
Click the Toolbox icon and drag Query to the work area.
-
Click the Toolbox icon, and to build an SQL query, drag SQL to the right of the query.
Tip: You can drag SQL anywhere in the work area, and IBM®
Cognos® Analytics - Reporting will automatically create a query.
-
Click the Show properties icon , and in the
Properties pane, double-click the Data source property
and click a data source.
- If required, set the Catalog property
to the name of the catalog.
- Double-click the SQL property and
type the SQL.
- Click Validate to check for errors.
-
Select the query, and In the Properties pane, set the Processing property to Limited Local.
- Double-click the query.
If the SQL is valid,
the data items defined in the SQL appear in the Data Items pane.
- In the navigation menu, click Report, click
Pages, and then click a report page.
-
Click the Toolbox icon and drag an object to the work area.
For example, drag a list, crosstab, chart, or repeater.
- Click the data container.
- In the Properties pane, click the
select ancestor button and click the container you just created.
For
example, if you created a list, click List.
Tip: You can also click the container selector (three orange
dots) of the container to select it.
- Set the Query property to the query
for the report type.
- Click the Data items icon
-
Drag the items from the query to the data container.