Filter <> 0..9

roshiniroshini Member Posts: 122
Hi Nav Experts,

I am using SETFILTER function

SETFILTER(Customer."No. of Due Months","%1..%2",0,9);
working fine. I want to use <> for the above SETFILTER.

How can I use <> for the above code ??
ex: <> 0..9


Thanking You

Comments

  • kapamaroukapamarou Member Posts: 1,152
    Have you tried:
    SETFILTER(Customer."No. of Due Months",'<%1|>%2',0,9);
  • roshiniroshini Member Posts: 122
    Thanks a lot Mr. Kapamarou, for your quick reply.

    but only problem with first record. It is not filtering first record.

    How to handle ??

    Thanking You
  • kapamaroukapamarou Member Posts: 1,152
    What is the value for the first record?

    Maybe you need an equal sign...

    SETFILTER(Customer."No. of Due Months",'<=%1|>=%2',0,9);
  • roshiniroshini Member Posts: 122
    First Record having value 1 in field "No. of Due Months". that record also displaying.

    Thanking You
  • kapamaroukapamarou Member Posts: 1,152
    You're welcome.
Sign In or Register to comment.