Using Multiple Data Sources in a Report

You can create reports that contain data from multiple queries that use a wide range of data sources (relational database queries, OLAP server queries, imported data sets, and local join queries).

In a sense, the data in a single table correlates data across queries in a report, retrieving all rows from the table on the “left” and any rows from the table on the “right” that have matching values. Unlike actual joined topics in the Query section, the tables are not linked in the same sense. In the Report section, data is only in the report.

The rules for using multiple data sources in a single report are:

  To build a multiple data source report:

  1. Build the queries that you want to include in the report:

    • Verify item data types and associated data values in source documents so that you know how to correlate them when creating the reports.

    • Build the Request line, and add server and local filters, data functions, and computations to the query as needed.

  2. Click Process.

  3. Select Insert, then New Report.

    A new report section is displayed.

  4. From Elements, expand the file button of the Results or Table set.

  5. If necessary, click Groups on the Section title bar to open the Group data layout.

    A group header categorizes data into repeating collections of records in a header band.

  6. If necessary, click Table on the Section title bar to open the Table data layout.

    The Table data layout shows two panes: Table Dimensions and Table Facts. Use the Table Dimensions pane to build the column dimensions (labels) in the report. Use the Table Facts pane to build the numeric values in the report.

  7. Build the group header band by dragging the item(s) from the Results sections from Elements to the Groups data layout.

  8. Build the column dimensions of the report, drag the item(s) from the Query sections from Elements to the Table Dimensions in data layout pane.

  9. Build the column numeric values of the report by dragging the item(s) from the Query sections from Elements to the Table Facts in data layout pane.