Lookup and return multiple values

I’m trying to dynamically populate the “to” field in an email by doing a lookup to another table. However, I could have multiple matching rows.

In other words, I have a Users table that has username, useremail, and userrole as columns. I want to get the email addresses from that table where userrole = “X”.

Is that possible?

Solved Solved
0 1 937
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Like this?

SELECT(
  Users[useremail],
  ([userrole] = "X")
)

See also:


View solution in original post

1 REPLY 1

Steve
Platinum 4
Platinum 4

Like this?

SELECT(
  Users[useremail],
  ([userrole] = "X")
)

See also:


Top Labels in this Space