Using AND , OR in same expression

I am having a problem trying to filter a view by 2 expressions. This is the formula I am trying to use but not working
AND(([Supplier]=โ€œ6โ€)
OR([Origin]=โ€œ519โ€,[Origin]=โ€œe9df84f5โ€))
I need the view filtered by 2 locations in ORIGIN Column and 1 in suppler column.

0 3 137
3 REPLIES 3

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Koehn1345

Try that:

AND([Supplier]="6",
  OR([Origin]="519",
    [Origin]="e9df84f5")
)

In a row filter condition applied to a slice.
Make a view based on that slice.

Ordered:

AND(
  ([Supplier]=โ€œ6โ€)
  OR(
    [Origin]=โ€œ519โ€,
    [Origin]=โ€œe9df84f5โ€
  )
)

You missed the , after "6")

Thank you!!

Top Labels in this Space