Subreports are used to run one report from within another by connecting the two reports together on a common field. Settings must be configured on both the subreport and the main report to use the drill-down feature.
For a demonstration, watch this video on defining a subreport.
The main report, also known as the calling report, pulls in the data from the subreport. The common field that connects the two reports is the drill-down key. Several options for how to display the subreport data are available.
The value of the field defined as the drill-down key is passed from the main report to the subreport to perform a sub-query. This single value is used as an additional filter in the subreport. The subreport must either return data from a unique record or have filters that match those used in the main report.
Note: Subreport data are not exported to Excel. The field containing the drill-down key displays the main report’s field value only.
Any report can be used as a subreport as long as one of its fields is defined as a drill-down key. This field does not have to be selected on the Fields or Summary tab of the report. For the field defined as the drill-down key in the subreport, an equivalent field must be available in the main report.
The drill-down key is set on the Misc tab.
Select the applicable field from the Drill-Down Key drop-down list. (This list displays all fields in the data sources used in the subreport.) This field will most often be a unique ID field.
The subreport must be configured before the related settings can be made in the main report.
A field selected on the Fields or Summary tab of the main report can be used to perform a sub-query by passing the field's value to the subreport. This field must set as the drill-down key in the subreport.
A field selected to appear in a pie, bar, or funnel chart on the Chart tab can also be used to display data from the subreport. This field must set as the drill-down key in the subreport.
These steps apply to the Fields or Summary tab.
The system automatically passes the Journal ID field along with the value of the drill-down key when a subreport is called. This ensures that related data from different publications are differentiated, and that the data are associated with the correct publication.
To return to previous page click ALT + left arrow