Solved

# Writing a Crystal Reports expression to get a median of Scores average

Posted on 2008-10-21
777 Views
I have the following data in a SQL Table (attached sample excel file)

This data shows the number of surveys done on each person in that list and what their score was for each and every survey. Some have more surveys than others

I want to be able to write an expression in Crystal Reports calculation that shows the average MEDIAN (%age) of ALL the survey scores, and based off of that, which of the people in that list are the top 20%, and which are the bottom 20%.

Would this have to be done in two parts? I am a NEW Crystal user. Can you guys write the expression out for me?

Thanks.
sample-data.xls
0
Question by:super786
• 2

LVL 100

Accepted Solution

mlmcc earned 500 total points
ID: 22771696
The median should simply be a simple summary of the score field.

Can a person appear in both top 20% and bottom 20%
If so simply sort the records by the score and use suppression to hide the not desired records.

Suppression formula would be

RecordNumber > 0.2 * Count({SomeField}) AND RecordNumber < 0.8 * Count({SomeField})

mlmcc
0

LVL 1

Author Comment

ID: 22771731
How would I calculate the summary of the score field in crystal expression form?
0

LVL 100

Expert Comment

ID: 22773415
The easy way is to put the score field on the report in the detail section
Right click the field
Click INSERT --> SUMMARY
Choose the summary you want

mlmcc
0

## Featured Post

### Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
How to increase the row limit in Jasper Server.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…