Solved

Summarize multiple counts in a drill down report

Posted on 2008-06-19
2
453 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 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