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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ranking

Status
Not open for further replies.

mcrisf

Programmer
Mar 2, 2005
31
US
Is it possible in CrystalRep 10 to rank a group (example i have salesreps and their sales amount ..i want to rank the salesreps depending on their MTD sales and rank on their YTD sales)...?
thx
 
just do a 'sort by' upon the field you want to -
CR10 has a sort by option

/Sam
 
yes, but i would like to show the rank to the user...
 
I would try by throwing in a variable which increments itself where the group by or sort by is done.

This this variable is the rank -

 
i tried it...but i think it doesn't work....do u have some code to post?
 
If you only have one group, you can add the special field "groupnumber" to the group section after doing the topN/group sort. If you report is more complex, you need to specify your groups.

-LB
 
I have only one group..I orderde it by ID and then by MTD, i used the grouonumber function....but it gave me wrong numbers...for example i have only 2 records and the formula (where is the groupnumber) gives me 95 and 105..!!!!!
 
use 'RecordNumber' and display that in the group header section

/Sam
 
What you are saying doesn't make sense. There is no formula for group number. Just go to the field explorer->special fields->groupnumber. Drag that into the group section you are displaying.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top