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 / How do I filter a Shar...
Power Apps
Unanswered

How do I filter a SharePoint Lookup list based on text entered in a search box?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have two SharePoint lists. List A has a series of names. List B shows who is assigned one of those names. When users are adding entries to List B, I need my PowerApp to let users search for a word such as "Microsoft" and have it then filter the drop-down lookup choices from List A so that only entries that contain "Microsoft" are available for selection.

 

I am very new to PowerApps and would appreciate any help y'all can provide.

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    You mention a DropDown...if so, have you considered using a ComboBox?  The ComboBox provides this functionality.

     

    If you add a ComboBox and

    1) set the Items to ListA.  Then set the Primary Text and the Search Field to the column in ListA that has the names you want to search.

    2) Set the isSearchable property (or Allow Search) to true

     

    You will now have a dropdown that users can type a name such a "Microsoft" and it will narrow the list down as they type.

     

    I hope this is clear and helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes ,

     

    That is very helpful. Is there any way to change the behavior of the search? I noticed it seems to default to a "Starts With".

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Hmmm, I've never noticed that...it searches full text from all I've ever done.

    Here in this screenshot, I am (with all the same parameters I mentioned to you), searching for "th" in a list.  My list items are full text searched, not StartsWith.

    pwrappr01.png

     

    I've never tested this next statement to confirm, but it is possible that the functionality of that combobox may differ on different players and/or browsers.  In this case I am in the designer and using Edge.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes,

     

    Strange. That is certainly not what I am seeing with the search. I have the SharePoint list added in Teams and am seeing the same result there when I perform a search as when I perform a search in Chrome, Edge, and Firefox.

     

    Oddly enough, the search is not even retrieving known results. For example, I search "Exchange", and I get no results even though there are at least 2 of which I know in the list.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Are you actually seeing "Exchange" in the list...without typing anything into the search?  I would check that first.

    Make sure you have the Primary Text and the Search Field properties set correctly on your ComboBox.  This is very important.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes,

     

    I do indeed. I can scroll and see multiple entries containing "Exchange" in the list. 

     

    Regarding the Primary Text and Search Field settings, Value is the only option for both drop-downs.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    That is a bit bizarre that you see them in the list but when you type they disappear as options.

     

    The reason you only see value is because you are most likely doing something like Distinct in your Items property for the ComboBox.

    That shouldn't make any difference, but, just to test, try setting it to your datasource instead and then set the fields (display and search) to be the column you want and see if the behaviour is any different.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes ,

     

    I thought so too. As far as what is currently in the Items field, it is another Choices('Name Tracker'.'Entry Name') formula. When I try to set it to the base data source ('Name Tracker'), I end up not even being able to set the search field to the 'Entry Namecolumn as it disappears from the list.

     

    I also get a warning triangle that says "Search may not work well on large datasets". The source list only has under 600 entries.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Ah...first, the size of the data.  You mention 600 items...is it under 500?  The default limit is 500.  If you need to bump that up to test anything, change it in your app settings.  But, this should not be an impact on the behaviour that you are seeing.

     

    What kind of column is Entry Name?  

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard