How to create a filter contains AND/OR clauses

FouadKayali
FouadKayali New Altair Community Member
edited November 5 in Community Q&A
I want to remove outliers based on the market segements, different market segment has different ranges of prices, so I want to filter based on both attributes for example 
(Market segment = online and price > 500) or (Market segment = offline and price > 1000)

Answers

  • hmhsing
    hmhsing Altair Community Member
    You may try the attached process using Titanic data from RapidMiner Samples.
  • hmhsing
    hmhsing Altair Community Member
    An easier way is to select expression in Filter Example condition class and write   

    Price>500&&contains(Market segment,"online")||Price>1000&&contains(Market segment,"offline") 

    in parameter expression.  I hope this will work!