>>Maybe this is too easy but at the end of the exspression you can say:
>>
>>Whatever >= (Cutoff -+*/ somenumber)
>
>I'm not sure, I understood. Anyway, I spoke with my manager and he explained what he was talking not about reports (which would be really hard to change), but about some program, which I use to generate a file, which then processed by our Production department. So, my task becomes much easier (I hope). I haven't checked it yet, though.
Last time I had such a weird request, I actually sorted the data the way they would print... into a readwrite cursor, and then ran a scan on it replacing a few values as needed - and these values were used by the report or whatever needed to use these data later. Adding extra fields is no problem, so you could simply
do while !eof()
lcGroup=CityOrCountyCode
replace next 3 lPrintThis with .t.;
while lcGroup=CityOrCountyCode
count while lcGroup=CityOrCountyCode
enddo
assuming you have them ordered by city/county and top ranked guys first.