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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery Search function
Power Apps
Unanswered

Gallery Search function

(0) ShareShare
ReportReport
Posted on by 45

Hi,

 

I have a small issue with searching a gallery of data.

 

i originally had customer name as the source for the gallery, and the search box worked fine searching and automatically filtering the gallery list as i typed in search box.

now, there's a new requirement where i have to load the gallery with customer keys. i then do a lookup on the item box to pull through customer name. so, user can see customer name but actual value behind is the customer key. so, now when i use search box, it's filtering gallery items by customer key and not name. 

how can I adapt the search facility to search on the 'masked' customer name rather than the customer key?

thanks for your help

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @mukeshkavia 

    I may not be understanding your requirement but take a look at Reza Dorrani's new video on the Combobox control. I think that may be the way to go for filtering your gallery rather than trying to do it with a textinput box.  

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @mukeshkavia,

    Could you please tell me that:

    1). if you have a Combo Box or Text box populated with the customer based on the input key within the search box?

    2). Are there a different data source that shares the same customer name column?

    3). If you want to filter the Gallery based on the Combo Box selected customer name?

     

    Here I just assume you want to populate a Combo Box with the customer name based on the input key and you want to filter the Gallery based on Combo Box.

    To achieve this, you must make sure the both of the key list and customer list share the same customer name column values.

     

    Set the Combo Box Items property as below:

    Distinct(CustomerNameList,CustomerNameColumn)

    Set the Combo Box DefaultSelectedItems property as below:

    Filter(CustomerKeyList,KeyColumn=TextInput1.Text).CustomerName

    Set the Gallery Items property as below:

    Filter(CustomerKeyList,CustomerName​=ComboBox1.Selected.Result)
  • mukeshkavia Profile Picture
    45 on at

    combobox and listbox have limitation on rows so hence using a gallery list which has no limits

  • mukeshkavia Profile Picture
    45 on at

    Hi,

    I have a textbox which i start typing a customer name into.

    the Gallery list below automatically filters the list data based on textbox.

    problem is, the source data in gallery items is based on customer keys. on the visible text box that the users see I do a lookup to show the customer name.

    The search function is filtering the keys based on names. 

    i want the user to be able to filter based on names and not keys. not sure how to achieve this.

    ps: i can't use combobox or listbox due to 2000 record limitation

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @mukeshkavia,

    Could you please tell me that if there is any relationship between the Key and the customer name?

    If the data source has a customer name column corresponding to each customer key that you do a lookup based on?

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard