I have 2 SharePoint lists. SP1 and SP2
SP1 looks like:
| ID | Type | Details |
| 1 | A | detail 1 |
| 2 | B | detail 2 |
| 3 | C | detail 3 |
SP2 looks like:
| ID | Parent_Type (this is a SharePoint lookup column from SP1) | Details |
| 1 | A | foo1 |
| 2 | A | foo2 |
| 3 | B | foo3 |
I am trying to load a Gallery control with the items in SP1 that are selected by a user && are contained in SP2.Parent_Type.
So if a user picks SP1.Type = A and SP1.Type = C, I want my Galley to only display SP1.Type = A (because SP2.Parent_Type does not contain C).
I know that PowerApps sees SP2.Parent_Type as a record because I can load a table with Items=SP2.Parent_Type and there are two avalible fields, ID and Value - the Value field is a text field and the one I want in this case.
So the ITEM formula that I have tried in my gallery is: "Filter(SP1, Type in SP2.Parent_Type.Value)" but I get an error saying "name is not valid. identifier not recognized" on the "value" part. BUT if i leave the value off I get "can't convert this data type. powerapps cannot convert text to record".
How to I format the filter correctly so that I can get the selected items in SP1 that also overlap with the items in SP2?