Solved

Summarize multiple counts in a drill down report

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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