Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Top 10 Percent 1

Status
Not open for further replies.

sopomeres

MIS
Jan 16, 2003
61
US
CR8.5: I have a list of employees with salaries. How can I display employees with the top ten percent salaries.

Thanks.
Chuck
 
Sort by the salary field, descending, and then go to the section expert->details->suppress->x+2 and enter:

recordnumber > count({table.field})*.1 //use a recurring field

-LB
 
LB,

It works for a straight list with no grouping. Now how do you apply this so it shows the top ten percent for each job group in a report?

Thanks for the help!
Chuck
 
Create a running total {#cntwingrp} where you choose a recurring field, count, evaluate for each record, reset on change of group. Then change the suppression formula to:

{#cntwingrp} > count({table.field},{table.group}) * .1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top