Solved

Summarize multiple counts in a drill down report

Posted on 2008-06-19
2
452 Views
Last Modified: 2012-06-27
I want my report to be a drill down report, based on the following (example) tables:

UserTable
UserID
UserName

TaksTable
UserID
Task
TaskDate

MemoTable
UserID
Memo
MemoDate


What I want my report to do is show the following:

Weeknumber                 UserID                  # of Tasks this week             # of Memo's this week

1                                      ABC                      25                                        8
2                                      ABC                      5                                          45
...


And I want to be able to drill down on the info, to show me the detail data, this is in a subreport (I don't see the problem there)

The problem is, that I don't know how to set this up. because I also need to filter on Users, dateranges etc, I can't make the whole query in SQL only and if I use Right Outer Join/SQL command this wouldn't work with the filters, so it seems I should treat this as different datasources.
Help is appreciated.


0
Comment
Question by:JeePeeTee
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 21829417
Based on what you have posted you must have a main report and at least one subreport being used to produce these totals.

The value in at least one of your totals must be coming from a variable, in which case there is nothing to drill down into for that total.

To get a drill down for both totals you would have to base your report on a query, which comprised  a union between the Tasks and Memo tables and a left join from the User table to that union (sub) query.

That would eliminate the need for any subforms and so would give you drill down within the main report for both totals.
0
 
LVL 4

Author Closing Comment

by:JeePeeTee
ID: 31468701
Hi Peter,

About one hour before your answer, I found the same solution with the union. But you've earned the points ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now