How to pull a value from a table using a list of keys as a reference

I have the following tables: Opportunities, Videos, Songs, Requests. Each Opportunity has many Videos and each Video contains a Song. If someone makes a Request, it makes a new row in the Requests table which contains a Request ID, the Opportunity ID, ref values for the Videos, and ref values for the Songs.

I need to pull the Request ID into the corresponding rows of the Songs table so that I know "โ€˜Hey Judeโ€™ is included in Request 1 ". I tried the following expressions in a virtual column in the Songs table but nothing worked.

SELECT(Requests[Request ID],IN([Song ID], Requests[Songs])
SELECT(Requests[Request ID],IN([Song ID],SPLIT(Requests[Songs],",")
SELECT(Requests[Request ID,CONTAINS([Song ID],Requests[Songs])

Any ideas?

Solved Solved
0 4 224
1 ACCEPTED SOLUTION

Ah.

FILTER(
  "Requests",
  IN([_THISROW].[Song ID], [Song IDs])
)

View solution in original post

4 REPLIES 4
Top Labels in this Space