Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Generic Drillthrough without replicating SQL from multiple main reports Expand / Collapse
Author
Message
Posted Monday, May 13, 2013 1:40 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, September 5, 2014 11:00 AM
Points: 55, Visits: 280
Is it possible to have a generic drillthrough report that can give me contact information about any list of EmployeeIDs coming from any number of aggregate reports. Let's say I have a bunch of reports that generally return the details of EmployeeIDs along with variables such as Department, Gender, Ethnicity, Organization, etc. These main reports can aggregate the details various ways. I would like to somehow pass the details of the EmployeeIDs that make up the aggregate, rather than having to recreate the complicated SQL in each of the main reports.

I know how drlilthrough works with a single value and then get details for that single value. In this case, I want to get different details about the Employees that make up an aggregate, so there is no single value I will be looking up in the drillthrough report.

One idea I had was the idea of somehow storing those detail records in a separate table with a report id and then the generic drillthrough could read that table for the employeeids. But I cannot think of a way to store the details of the particular table cell that would be selected.

Biology Dept 55
Male 23
Female 32

For instance, I would like to be able to have the drillthrough report get results for only the 23 males in Biology. The main report already has run the dataset to get those details, so I just want to pass those 23 to the drill report. It seems the only thing I can do is recreate the main SQL and add parameters for the dept and gender, but I would like a generic drill through, rather than a separate drill through report for each aggregate report.

Is this possible in any way?
Post #1452296
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse