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 / Search person or group...
Power Apps
Answered

Search person or group field in powerapps

(0) ShareShare
ReportReport
Posted on by 443

Hallo,

I was wondering if there is another way to use a search input field for person or group fields instead of creating an additional column in the SharePoint list with the display name as a text field

 

i use a gallery and filter my list. and i have already used search function but regarding single lone of text fields

Categories:
I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @marial16 ,

    Do you want to filter based on display name of person or group field?
    Two solutions:
    1)use search function

    Yes, if you use search function, you need to add a column with display name as a text field.

    The reason is that search function only works for text type field. Other data type are not supported.

    So the formula should be like this:

    Search(AddColumns(table,"displayname",personfield.DisplayName),
     Textinput.Text,
     "displayname",
     "field1","field2",...)

    2)use filter function

    Filter function could work for multiple data type.

    If you use this function, you no longer need to add another column.

    Formula should be like this:

    Filter(table,
    Textinput.Text in personfield.DisplayName,
    Textinput.Text in field1,
    Textinput.Text in field2,
    ....)

     

     

     

    Best regards,

  • marial16 Profile Picture
    443 on at

    when you say table you mean the name of the List?

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @marial16 ,

    Yes, that's right.

    You could refer the syntax for these two functions:
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

     

    Best regards,

  • infamouslysin Profile Picture
    14 on at

    I tried your suggestion for the filter function, but now my gallery will only filter based on the first character entered in the text box. When 2 characters are entered it does not return any results in the list even though they should exist.

  • iampegram Profile Picture
    11 on at

    For the Filter function, you need to use the or operator instead of commas:

    Filter(table,
    Textinput.Text in personfield.DisplayName ||
    Textinput.Text in field1 ||
    Textinput.Text in field2 ||
    ....)

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard