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 / 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
    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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard