Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

calculate rank, based on a single field

Featured Replies

Hi All,

 

How can i calculate rank, based on a single field. I have some duplicate records. Although, i want to rank the student with the highest marks to lowest marks.

 

Please see attachment for help.

 

Thanks in advance.

post-104036-0-50409400-1365857135_thumb.

post-104036-0-06926900-1365857137_thumb.

I would do a looping find to mark the dupes and use only the first occurence of each record

create a global roll number field (G_RollNo), also create a flag field

sort the records by Roll Number

go to first record

Set Field [G_RollNo; Roll Number]

Loop

go to next record/exit after last

if [Roll Number=G_RollNo]

Set Field [Flag Field;"X"]

else

Set Field [G_rollNo;Roll Number]

end loop

 

Find Records omitting those with Flag Field marked X

 

 

and then.....

 

with a couple of extra fields -- G_Marks - global marks field, G_Rank - global rank field, Position, you can do a script like this:

#sort records descending by marks

Sort Records

go to Record/First

Set Field [G_Rank; 1]

Set Field [Rank; G_Rank]

Set Field [Position; 1]

Loop

go to Record/Next - exit after last

Set Field [Position; G_Rank +1]

Set Field [G_Rank; Position]

End Loop

Go to Record/First

Loop

if [G_Mark = Mark]

Paste [select; Rank]

else

Set Field[Rank; Position]

End if

Copy [Rank]

Set Field [G_Mark; Mark]

go to Record Next/exit after last

End Loop

 

 

This will give you marks that will go:

 

1

2

2

4

4

6

 

etc.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.