Solved

Summarize multiple counts in a drill down report

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

744 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

11 Experts available now in Live!

Get 1:1 Help Now