web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter a list with onl...
Power Apps
Unanswered

Filter a list with only IDs that exists in another list

(0) ShareShare
ReportReport
Posted on by

Hey!

I have a Product SP list that has information about the products we use and I also created a user Favorite Products list that contains two columns (user email and favorite product ID). The product ID in the favorites list is taken from the original Product list.

But now I want to create a gallery that uses the Products list, but only the products where the ID contains in the Favorites Poducts list for that user. That is, only the favorite products of that user. How can I do this?


P.S: It is essential that the filter is done on the Products list (and not on the Favorite Products list), as I have other functions that use columns from Products list. So the function must filter the Products list, but only the rows that the ID contains in the Favorite Products list and the email is the same as the email of the user logged into the app.

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    You should be able to create a sub-gallery for this. I would trap the users' email in the start-up of the app. Then filter your favorites list by that email. Use that list to populate your galllery. Then use Lookup() to bring in the other needed data as a sub-galley. When you create your original gallery, put your cursor in the first cell where you make all the formating for th egallery. Go to the insert tab and insert a Gallery whn you are in that cell. The gallery will be inserted for every item. If you do the lookup it will work for each individual product.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard