If I use the formula below then only the previous record and the active record are bing compared. I need the active record to be compared against the entire column and continue this process until the last record in the column.
numbervar CntCurr;
If previous({table.MedRec}) = {table.MedRec} then
CntCurr := CntCurr+1
else
CntCurr :=0
If you decide to post technical information to describe what you want someone will help you. You ignored my questions, and simply restated another vague blurb which contradicts the original posting.
If you use my formula in the details and sort by your field it would show:
field formula result
_____
12 0
12 1 (first occurance of a dupe, per your post)
12 2
13 0
13 1 (first occurance of a dupe, per your post)
13 2
13 3
etc.
So you could either place code inside the formula to do whatever it is that you need when you have a recurrence of a dupe, or create another formula that is based on this one.
This formula does compare every row, and resets when something changes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.