Solved

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

Posted on 2008-10-21
5
777 Views
Last Modified: 2013-11-15
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
Comment
Question by:super786
  • 2
5 Comments
 
LVL 100

Accepted Solution

by:
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

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

Expert Comment

by:mlmcc
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…

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

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

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now