Options

Filter expression

learnerlearner Member Posts: 33
how can I set in filter
from (1-10) but not (4, 6 and 7) and (15-19) but not 17?

i tried the following:
1..10 <> 4 <>6 <>7 | 15..19 <> 17

Says..incorrect Expresion!

( I dont have a manual with me now)

Comments

  • Options
    BeliasBelias Member Posts: 2,998
    1..3|5|8..10|15|16|18|19

    if i understood your purpose correctly
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    learnerlearner Member Posts: 33
    Thanks, but i want to use <> (not expression)
    The numbers given are just example..i have a long list of the code and each code is 14 characters.
    How can I sue NOT expression here?
  • Options
    BeliasBelias Member Posts: 2,998
    I answered to your original question, if your purpose is to use <> operator, then you can try with this:
    (i'm not 100% sure it works, you should try it)
    1..10&<>4&<>6&<>7|15..19&<>17
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    krikikriki Member, Moderator Posts: 9,098
    The Filtergroup-solution is the most beautiful one and probably the easiest one too.
    With filtergroups you can put different filters on the same field. It is like putting an AND between the different filters.
    SETFILTER("The Field",'1..10|15..19');
    FILTERGROUP(10);
    SETFILTER("The Field",'<>%1',4);
    FILTERGROUP(11);
    SETFILTER("The Field",'<>%1',6);
    FILTERGROUP(12);
    SETFILTER("The Field",'<>%1',7);
    FILTERGROUP(13);
    SETFILTER("The Field",'<>%1',17);
    
    FILTERGROUP(0);
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    learnerlearner Member Posts: 33
    Belias wrote:
    I answered to your original question, if your purpose is to use <> operator, then you can try with this:
    (i'm not 100% sure it works, you should try it)
    1..10&<>4&<>6&<>7|15..19&<>17

    Thanks Much it worked..
    kriki wrote:
    SETFILTER("The Field",'1..10|15..19');
    FILTERGROUP(10);
    SETFILTER("The Field",'<>%1',4);
    FILTERGROUP(11);
    SETFILTER("The Field",'<>%1',6);
    FILTERGROUP(12);
    SETFILTER("The Field",'<>%1',7);
    FILTERGROUP(13);
    SETFILTER("The Field",'<>%1',17);
    
    FILTERGROUP(0);

    How/Where do I set this when I am trying to filter one of the dimensions for Analysis by dimesion?
  • Options
    krikikriki Member, Moderator Posts: 9,098
    I thought it was programmatically. I didn't think about the fact that it was for manually setting filters.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.