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 / Seach doesnt like "Dat...
Power Apps
Unanswered

Seach doesnt like "Dates", "Name Look Ups" and "Dropdown" box values in DataTable

(0) ShareShare
ReportReport
Posted on by 225

I have a canvas with a data table with "Date", "First Name", "Second Name", "Company", "Host" and "Visiting Site".  I also have a "Text Input" box working as a "Search" Criteria box.  The Search works great for the "Single Line Values" such as "First Name", "Second Name" & "Company", but as soon as I add "Date", "Host (name lookup)" or "Visiting Site (dropdown value)", the search wont work.

 

The code for the DataTables items value is: Search('Visitor Details',SearchBox.Text, "Company","First_x0020_Name","Second_x0020_Name","Car_x0020_Reg")

 

Why wont the search work with data, host and visiting site?  Thanks in advance.

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @StuartSmith 

    There's a pretty good post by @Jeff_Thorpe which explains why searching dates and lookups is not the best approach.  Sharepoint date and lookup columns are not delegable so after 500 records (or 2000 records if you've changed the advanced setting) the search will end and you'll be missing results.

     

    Suggest your read the post first and decide whether the other options Jeff explains will work better for you:

    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/SharePoint-Lists-Powerapps-won-t-search-quot-Choice-quot-Field/td-p/104473

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • RezaDorrani Profile Picture
    12,143 on at

    Hi @StuartSmith 

     

    The Search function only works with Simple data types 

    Complex data types - lookups, choice, etc. will not work

     

    Replace the Search function with Filter function

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • StuartSmith Profile Picture
    225 on at

    Thanks, whilst I am trying to figure out getting "Dates", "Name LookUps" and "DropDown" Values filtered, is there an "And Or" feature as would like to search on either a single or multiple values such either "First Name" or "Second Name" or even "First Name" & "Second Name".

     

    I currently have: Filter('Visitor Details', StartsWith('First Name', Search_First_Name.Text), 'Second Name'in Search_Second_Name.Text)

     

    But it will only display results if both values in "Search_First_Name.Text" & "Search_Second_Name.Text" are met, but would be nice if i could have something like...

     

    Filter('Visitor Details', StartsWith('First Name', Search_First_Name.Text)  AND/OR ('Second Name'in Search_Second_Name.Text)

     

    Is this possible?

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

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard