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 / Combo box search by se...
Power Apps
Answered

Combo box search by second text on a single column

(0) ShareShare
ReportReport
Posted on by 901

Is it possible to search by second text on a single column? l'm using a combo box connect to a SharePoint list. If not is there a better approach?

Capture.PNGCapture1.PNG

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @oappdev 

    Actually, if you use the SEARCH function it will look at the whole contents of the column.

    If you just wanted to SEARCH on the last name only you'd need to put it in a separate column within your datasource or a collection.  I am thinking a collection is the better way to go here.

     

    Assuming 'Center' is a single-line text field in SharePoint use this code to create a Collection in the OnVisible property of the screen.

    ClearCollect(colComboOptions,
     AddColumns(
     your_datasource_name,
     "LastName",
     Split(Center," ")
     )
    )

     

    Then use it as the Items property of your gallery

    colComboOptions

     

    And change the SearchFields property to this

    ["LastName"]

     

    Now your ComboBox will only search on the last name.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • oappdev Profile Picture
    901 on at

    Thank you so much @mdevaney Let me give it a try and circle back 

  • oappdev Profile Picture
    901 on at

    Thank you @mdevaney That did the trick 👍

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard