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

How to average costs & then remove duplicates in Crystal

How to average costs & then remove duplicates in Crystal

How to average costs & then remove duplicates in Crystal

Hello everyone,
I'm brand new to the forum and have a very basic question for Crystal wizards out there!
I'm using Version (probably old). I have a very basic report using only 2 tables. In the attached example, the field I'm trying to work with is the Part ID field. The unit price is from a table from purchasing and the rest of the fields are from the Part table.
What I'd like to show is AVERAGE unit price and then eliminate the duplicates. What's showing is every single purchase order for that particular part.
Is there a way to do this? I'm a novice at Crystal, so please be kind! smile

Thanks in advance for any help.

RE: How to average costs & then remove duplicates in Crystal

Your example doesn’t help much since the only field that appears to be unique is the price field. It looks like you are showing groups, but you aren’t showing the field that you are grouping on. I’m assuming that the part id is the left-most field.

Let’s say that you are grouping on vendor. Then are you saying that the “duplicates” within each vendor should not contribute to the average? One way of doing this would then be to insert a running total that does an average of price, evaluate on change of group (vendor) and resets never. Place this in then report footer (assumes the report is for one part only.

If the report shows multiple parts (e.g., a group #1 on part ID, and a group#2 on vendor, then place the running total in the group #1 footer (will not work in a header) and change the resets to “on change of group” (Part ID).


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