SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Generic Drillthrough without replicating SQL from multiple main reports


Generic Drillthrough without replicating SQL from multiple main reports

Author
Message
mikeg13
mikeg13
SSC-Enthusiastic
SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)

Group: General Forum Members
Points: 158 Visits: 317
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?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search