Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Stop duplicate counts

Stop duplicate counts

Stop duplicate counts

Hello, it's been quite a while since I last reached out to the Tek-Tip community. You guys saved me a few times on some reports i created and I thank you for that.

I created a bar chart a while back that I need to modify. I'm using Crystal reports 11 with MS Access.

Basically my chart has yearly counts of X,Y,Z which represents specific level of case events.

The fields of data I have are:
Case ID Allegations Class
12345 Discrimination Age
Failure to hire Age
Harassment Ethnicity

My goal is to get a true count of the "Class" field per Case ID. The example above returns a count of 2 under the "Class" "Age" and 1 for the "Class" "Ethnicity. because there are two "Allegations" with the same "Class", being "Age", it counts it twice. For my chart I would want to count it as one occurrence (Age). I hope that's clear enough.

I appreciate any help you can give me.

RE: Stop duplicate counts

I think you just need to use a distinctcount of class instead of a count, assuming you have Case ID as your “on change of” value.


RE: Stop duplicate counts

Thanks LB, you came through again!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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