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 138
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