All the knowledge base documents below are from Cognos Support, hope one answers your question......
Description:
Is it possible to create a drill-through on a sub report ?
Solution:
Normally a drill-through is only done on the main query. However, it is possible to make a drill-through on a sub report by putting the column to drill-through to in the main query as well as in the sub report. If the column is not relevant in the main query it can be hidden.
---------------------------------------------------------
Description:
A linked Sub-Report is Required which displays all items contained in the main query. The filtering capabilities in Impromptu for linked Sub-queries do not permit the use of the IN operator and will include only the first element of the required list.
This is the current functionality for filtering between main and linked Sub-queries.
Solution:
Example Using the "Great Outdoors Sales Data"
The main query contains a summary query with the following columns:
Groups: Country, State\Prov, Customer Name, Order No. and Date
Aggregate: Total(Sale Amount)
Sub-Query: Country, Customer Name and Order Number all grouped.
Details: Product, order price, qty and sale amount.
Requirement: To filter the report on a column other than the main grouping and have all associated orders for a given country on a single page.
1) Set scope of data on the primary form frame to 'Data in Group: Country'
2) Rather than filtering on order date in the query itself as this will produce the problem, create another report where the order number is placed in the query and the report is filtered on the order date.
3) Set a filter in the main query where the order number is in a dataset which is the above report.
4) Set the same filter in the Sub-query.
5) Add to the Sub-query filter the link where country = mainquery.country.
---------------------------------------------------------
Problem Description:
How can a prompt from the Main report be synchronized to the Sub-report?
Solution Description:
In the Main Report, define the prompt(s) and filter(s). Insert the Sub-Report and apply a filter relating to the prompted field(s).
The filter expression that links a sub-report to a Main report is as follows:
<column name>=Main Query.<column name>
-----------------------------------------------------------
Description:
A linked Sub-Report is Required which displays all items contained in the main query. The filtering capabilities in Impromptu for linked Sub-queries do not permit the use of the IN operator and will include only the first element of the required list.
This is the current functionality for filtering between main and linked Sub-queries.
Solution:
Example Using the "Great Outdoors Sales Data"
The main query contains a summary query with the following columns:
Groups: Country, State\Prov, Customer Name, Order No. and Date
Aggregate: Total(Sale Amount)
Sub-Query: Country, Customer Name and Order Number all grouped.
Details: Product, order price, qty and sale amount.
Requirement: To filter the report on a column other than the main grouping and have all associated orders for a given country on a single page.
1) Set scope of data on the primary form frame to 'Data in Group: Country'
2) Rather than filtering on order date in the query itself as this will produce the problem, create another report where the order number is placed in the query and the report is filtered on the order date.
3) Set a filter in the main query where the order number is in a dataset which is the above report.
4) Set the same filter in the Sub-query.
5) Add to the Sub-query filter the link where country = mainquery.country.
----------------------------------------------------------
Cheers,
Adam.