Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Can't filter a lookup field from another table with a gallery selection

This should be easy but I just can't make it work.


I've got two SharePoint lists, 'IB Learning areas' (one column only) and 'Learning tools list'. The latter includes a lookup field containing choices from the former, with multiple options able to be selected.


I want to use a gallery (galSubjects) to select a learning area, then filter all records in 'Learning tools list' based on that. I'm finding simple options not working and complex ones confusing!


Simple (but failed) methods

Filter([@'Learning tools list'], galSubjects.Selected.Title in Subject_Areas)

- error with Subject_Areas; "Invalid schema expected a one0column table."


Filter([@'Learning tools list'], galSubjects.Selected.Title in 'Learning tools list'.Subject_Areas)

- error is with Title; "Can't convert text to a table"


More complex

I'm trying to figure out this 'Choices' command I'm reading about, but I'm twisting myself in knots. Here's what I've tried and I feel I'm not even close:


Filter(Choices([@'Learning tools list'].Subject_Areas), Value in Filter('IB Learning areas', 'IB Learning areas'.Learning Area = galSubjects.Selected.Title).Title)


I've attached screenshots that should help explain, I really feel like this should be simple and I'm missing something so basic!

Super User
Super User

You will need a lookup function. But to be able to do that, clarify are you using the formula inside a Gallery or Outside the Gallery. A screenshot of where the formula is located will help


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

I've read about lookups, though I understand they only return a single record? Happy to be wrong.


Have attached the screenshot of the code used in a gallery, although there's not a lot to see as it's blank and not working yet! Hope that clears up what I'm trying to do.


As an aside, I'm planning on using the sort function that came (this app was pre-generated from a list) but I've stripped that code out until I can at least get something shown in the gallery!

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,125)