Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I think this forum rocks it has saved my bacon many many times..."

Geography

Where in the world do Tek-Tips members come from?
tpsmith (TechnicalUser)
28 May 12 6:20
Hi

I am trying to add together the subtotals for a matrix but in the dataset the value appears for each line and I need to be able to drill down into the detail of the report so cannot just summarise in the query .... i hope this makes sense, I struggle to explain whats needed so here is a simple breakdown.

Department Course Target Student Code
ART ABC 12 AS1234
ART ABC 12 AS3455
ART ABC 12 AS3453
ART ABC 12 AS4567
ART ABC 12 AS4242
ART DEF 6 AS2223
ART DEF 6 AS1111
ART DEF 6 AS4444

I need to be able to group by the department and give the total of 18 for the department total so not summing the target field on the report. I can group by the department and the course and display the target for each course but when I go to sum the target for the department i get the value for each student not the coure.

Please help!! :)

Thank you
Tony


xlbo (MIS)
4 Jun 12 23:47
I'd be handling this in the query - simply divide the target by count of course - then it is a simple sum. You can do this in the report as well but generallyI try to do these kind of things in the query

Alternatively you can use ROWNUMBER in your query and only populate the target where ROWNUMBER = 1

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244: How to get the best answers before you ask a question

tpsmith (TechnicalUser)
6 Jun 12 9:41
Thank Geoff, rownumber may be the way forward as I have detailed data in the query and not summarised.

Regards
Tony

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close