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 Function for Sh...
Power Apps
Suggested Answer

Search Function for Sharepoint Person or Group Column Type

(0) ShareShare
ReportReport
Posted on by 12
In my Sharepoint file, I have a column that stores Technicians that are assigned a work order. There can be multiple technicians assigned to a single work order, thus the column type is a Person or Group. I am attempting to create a search bar so that the work orders can be filtered by who has been assigned to such. 
I was originally using this code due to delegation concerns.
StartsWith(
            Concat(
                Technician.DisplayName,
                DisplayName,
                ","
            ),
            txtbox_all_tasks_search.Text
But when multiple users were assigned to a task, the second listed technician won't show up when searching their name. I then started trying to use the Search function as delegation won't be an issue that ruins the app. However, since Technicians aren't stored as a text it's not working.
This is the code I am unable to get working:
Search('Work Orders', txtbox_all_tasks_search.Text, Technician)
I have tried adding .DisplayName and other similar solutions and haven't had any luck. If there is a solution that I'm missing please feel free to reach out.
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,793 Most Valuable Professional on at
    This should work - although not Delegable, nor can you make it so.
    Filter(
       'Work Orders', 
       txtbox_all_tasks_search.Text in Technician.DisplayName
    )

    OR

    Filter( 'Work Orders', txtbox_all_tasks_search.Text in Concat(Technician, DisplayName,",") )

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • Suggested answer
    Robu1 Profile Picture
    1,621 Super User 2026 Season 1 on at
     
    Thank you for choosing Microsoft Community.

    It sounds like you’re facing a common challenge when dealing with multi-value Person or Group columns in SharePoint. Here are a few steps you can take to resolve this issue:
     
    Use the Filter function: Instead of Search, you can use the Filter function combined with ForAll to iterate through the list of technicians. This approach allows you to check each technician’s display name individually.
    Concatenate Display Names: Create a calculated column in SharePoint that concatenates the display names of all assigned technicians into a single text field. This way, you can use the Search function on this text field.
    Here’s an example of how you can use the Filter function with ForAll:
    Filter(
        'Work Orders',
        ForAll(
            Technician,
            StartsWith(DisplayName, txtbox_all_tasks_search.Text)
        )
    )
    If you prefer to use a calculated column, you can create a new column in SharePoint that concatenates the display names of all technicians. Then, you can use the Search function on this new column:
    Create a Calculated Column:
    Go to your SharePoint list.
    Create a new column of type “Calculated”.
    Use a formula to concatenate the display names of all technicians.
    Use the Search Function:
    Search('Work Orders', txtbox_all_tasks_search.Text, ConcatenatedTechnicianNames)
    These approaches should help you filter work orders by the assigned technicians more effectively. Let me know if you need further assistance!
     
    If this fixes the issue, please mark as resolved to help others with find it.
     
    Happy to help 
    Robu 1
     
  • CL-20081814-0 Profile Picture
    12 on at
     
    I'm attempting to create the Calculated Column, but I'm having troubles with the formula.
    I've been attempting with this sort of Syntax, attempting to add things like brackets and a ".DisplayName" after Technician but have had no luck.
    =CONCAT(Technician, DisplayName, ",")
     
    Please let me know if there is a correct way to do this or if I can use a different function to get the same result.
     
    Thank you
  • WarrenBelz Profile Picture
    154,793 Most Valuable Professional on at
    Please do not use SharePoint calculated columns - they are incompatible and unreliable in many ways with Power Apps and should be avoided. They also do not support Delegation. Also using ForAll inside a Filter is non-Delegable, so does not solve your issue.

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
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard