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

Rank 1

Status
Not open for further replies.

tsusnik

Technical User
Aug 23, 2001
43
SI
I hope rank is the correct English word for the thing I'm looking for. I think that some data will describe the problem.

Group Number Name Count({Field}) Rank

1 Person1 79 1
2 Person2 74 2
3 Person3 74 2
4 Person4 56 4
5 Person5 56 4
6 Person6 42 6

I can't create a formula for the column 'Rank'. The data is sorted with Top N/Sort Group Expert. I can't use the Previous function because of the count field. Is there any way to solve this problem?

Thanks for any advice, Tomaz
 
Put this in the Group Footer:

WhilePrintingRecords;
NumberVar PassCount := count(x,y)


Put this in the Group Header:
WhilePrintingRecords;
NumberVar PassCount;
NumberVar Rank;

if Passcount = count(x,y)
then Rank:= Rank
else Rank := Rank+1 Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top