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 / lookup multiple select...
Power Apps
Unanswered

lookup multiple selected gallery items from table

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I have a requirement to use the lookup function with a datasource and multiple items to lookup.

 

i.e. i have a gallery with checkbox for each item in gallery. let's say a user selects 5 items in gallery, i want to get the lookup of each selected item from a datasource. now, in the lookup function, you can normally only lookup a single distinct value. if you want to find multiple items then you would loop through the multiple items. but, you can't do a loop within a lookup in powerapps.

any ideas?

THanks

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    hi @mukeshkavia you can use Filter or Search for this. Filter is best for a single column and search for multiple, you can use filter for multiple columns as well but search is better imo.

     

    Give it a try and if you need more info let me know.

     

    Hope it helps,

    R

  • Sunil-Narnaware Profile Picture
    681 on at

    @mukeshkavia first you have to create a collection which would store the records which are selected from gallery by selecting checkboxes.. so OnCheck of Checkbox add the record in collection and on OnUncheck remove it from the Collection.. Now you use ForAll(collection, Filter(Datasource, Value = ThisRecord.Value)) or something similar..

  • Verified answer
    mukeshkavia Profile Picture
    45 on at

    thanks Sunil, this was useful to point me in the right direction. i didn't have to use ForAll. I just updated my Patch formula to include the lookup 

  • v-jefferni Profile Picture
    on at

    Hi @mukeshkavia ,

     

    Have you solved this problem? It seems you figured it out but could you please share your formula to help other users?

     

    Best regards,

  • Verified answer
    mukeshkavia Profile Picture
    45 on at

    Hi,

    I used the lookup function with the text object of the gallery rather than trying to lookup all the data at once. 

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard