>Can not filter using $
>
>Both lines below count the same, though many fields contains "PIZZA" and "locadora"
>
>COUNT FOR UPPER(state) = "SP" TO est_reemb
>
>COUNT FOR UPPER(state) = "SP" AND (NOT "PIZZA" $ UPPER( prog_long) OR NOT "LOC" $ UPPER(prog_long )) TO est_reemb
As long as there is no PIZZA and LOC in one prog_long this is true
Do you mean you like to have all SP but not PIZZA and LOC?
then try
COUNT FOR UPPER(state) = "SP" AND NOT ("PIZZA" $ UPPER( prog_long) OR "LOC" $ UPPER(prog_long )) TO est_reemb
HTH Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]