Solved

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

Posted on 2008-10-21
5
780 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help to rewrite script 3 79
Classic ASP - problem with MS SQL Select Query? 10 58
Crystal Reports No Record Returned 2 51
Crystal Report sorting 6 7
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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