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 / Filter on Dataverse co...
Power Apps
Unanswered

Filter on Dataverse column value after space - CanvasApp

(1) ShareShare
ReportReport
Posted on by 977

Hi - looking for a simple way to search on a split the "employee's" name by first few characters of the last name 

Column is a Dataverse single line of text column

Currently search code is 

 StartsWith(
                    'Employee Name',
                    Trim(tbEmpNameFilter.Text)
                ) ||
                                                
                EndsWith(
                    'Employee Name',
                    Trim(tbEmpNameFilter.Text)

 

I tried 

StartsWith('Employee Name',Trim(tbEmpNameFilter.Text)
) ||
 StartsWith(Last(Split('Employee Name'," ")).Value,Trim(tbEmpNameFilter.Text))

 

but I get the delegation error 

 

Client wants to see a result for the first few characters of the last name ...  

ex: Ted returns 

Christina Tedesco 

 

Thank you 

I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at

    Hi @ctedesco3307 

     

    You should share a screen shot of the error, so we can validate where or if there are many delegation errors.

     

    1. Do you have more than 2,000 records that will be searched??? if not ignore the delegation warnings

    2. Can you please share the whole Filter/Search, as in are you truly doing a Search or a LookUp or a Filter or a combination? 

     

    If you just want to get rid of the Delegation, please share the whole thing

     

    Thanks


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • ivan_apps Profile Picture
    2,189 Moderator on at

    StartsWith is delegable in Dataverse, but you can also use Search() for your text search.

     

    take a look at this Delegable function table from the docs: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/connections/connection-common-data-service#power-apps-delegable-functions-and-operations-for-dataverse

     

    if you look at the footnotes it states that with the text searches Trim() is not delectable with text fields. Try removing your transformations and use Search to get your desired results.

  • ctedesco3307 Profile Picture
    977 on at

    @ivan_apps - Thanks - trying to use Search but getting error 

     

    ctedesco3307_1-1721129932129.png

     

     

  • ivan_apps Profile Picture
    2,189 Moderator on at

    When you see 'Employee Status (Employees)' it's actually trying to give you the values of that dropdown. If you put a period after it, you'll see all the options in the choice column. 

     

    The syntax is: Search(Table*, SearchStringColumn1 [, *Column2*, ... ] )

    so likely you just need 'Employee Status' as Column1 instead of 'Employee Status (Employees)'

  • ctedesco3307 Profile Picture
    977 on at

    @ivan_apps I had the wrong field in the first screen shot- it's a text field I am working with. Same error

     

    ctedesco3307_0-1721134951467.png

     

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

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard