Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Eliminating the high and low values from an average calculation in Crystal

Posted on 2006-07-21
Medium Priority
406 Views
Hi:

How do I kick out the high and low values from an average in grouped data in Crystal.  The client does not want a weighted average.

I think that I may have to manipulate the code in the stored procedure before doing the calculation in Crystal reports..

As I am at home right now...I don't have the report writer infront of me but is there a conditional running total that would eliminate the highs and low values within a group?

Thanks, Lucy
0
Question by:Lucia
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
• 4
• 2

Author Comment

ID: 17153196
Sorry...I am using Crystal 8.5.

Thanks, Lucy
0

LVL 10

Expert Comment

ID: 17153253
Hi Lucy,

Yes, there is a minimum and maximum functino within the running total that you'll be able to use.

Spykair
0

LVL 10

Expert Comment

ID: 17153256
*function
0

Author Comment

ID: 17153274
Thanks, as soon as I get in I will try it .  I will let you know  how it works. Lucy:-)
0

Author Comment

ID: 17154447
Hi :

I am still having problems:

So I have a formula called Total Case Times
10
15
23
--------
48

I want to eliminate the 10, and 23 from calculating in the average...(thats what client wants).

Do I use the nthlargest and nthsmallest ...?

Thanks, Lucy
0

LVL 28

Accepted Solution

bdreed35 earned 2000 total points
ID: 17155020
I think you are going to have to look at using manual running totals.
Before I post a solution, is the average going to be for the whole report, or for a grouping?  IF it is a grouping, what is the field you are grouping on?

0

Author Comment

ID: 17155807
Hi bdreed35:

field:{@Total Case Time}
what I am grouping on {NHS_Setup_Proc_Teardowns_85193.proc_mnc}

Can the running total be done on a calculated field.

Thanks, Lucy
0

## Featured Post

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customerâ€™s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. â€¦
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â€¦
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increasedâ€¦
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompaâ€¦
###### Suggested Courses
Course of the Month7 days, 15 hours left to enroll

#### 715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.