UNION query of two or more selects

Is there a way to do the equivalent of a UNION query ?

I want to do this for a Valid If list in a drop down. Do I need to wrap this in an additional select statement ? It runs but returns the values of the first select only
SELECT(Preferences[Type], [FirstName] = ‘Master’) UNION SELECT(Preferences[Type], [UserEmail] = USEREMAIL())

0 3 770
3 REPLIES 3

To merge to lists you can just use

{List 1} + {List 2}

Steve
Platinum 4
Platinum 4

Or, more efficient:

SELECT(
  Preferences[Type],
  OR(
    ([FirstName] = "Master")
    ([UserEmail] = USEREMAIL())
  )
)

See also:

Yup that was it , I tried with or earlier but was wrapping the or around the selects and not doing an or in the select statement !

Top Labels in this Space