0

PUTTING AN "OR" INTO THE FORMULA FIELD COLUMN FILTER

I've created a formula field that concatenates choices from a multiple choice field. So if a user chooses Apples and Pears, it shows as "Apples,Pears".

In a table I want to apply a filter to this formula field so that it shows only "Apples" (single choice) or "Pears" (single choice) or "[nothing]" but not "Jackfruit" (single choice) or "Bananas" (single choice).

Can this be done?  I'm not a fruiterian, it's just an example.

6 replies

null
    • Nick
    • 4 yrs ago
    • Reported - view

    Try this:

    like "Apples" or like "Pears" or like "[nothing]"

    • David
    • 4 yrs ago
    • Reported - view

    I tried

    like "Apples" or like "Pears" or like ""

    and it didn't exclude the other values. "" means null value, right?

    • CISOFT_Sarl
    • 4 yrs ago
    • Reported - view

    and if you try with this:

     

    ike "Apples" or like "Pears" or like null

    • David
    • 4 yrs ago
    • Reported - view

    That doesn't work either. Like "Apples" works on its own (returns any line item with Apples in it). What it doesn't seem to interpret is the or like. Add that and everything is returned. 

    • Jorg
    • 4 yrs ago
    • Reported - view

    Hi, 

    What about

     

    like "Apples" or  like "Pears" or = null

     

    Best, Jörg

    • David
    • 4 yrs ago
    • Reported - view

    That doesn't capture the blank items, but this works:

    like "Apples" or  like "Pears" or = ""

    Problem solved. Thanks!

Content aside

  • 4 yrs agoLast active
  • 6Replies
  • 1131Views