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 data from table...
Power Apps
Unanswered

Search data from table for display form - No Gallery

(0) ShareShare
ReportReport
Posted on by

Hi, I want to search data from table using search box and display on display form. I used lookup to search the data but this function cannot search all the data, its work only half table. So as my data table is huge, can u suggest me what method should I go with. Hope u can help.

 

Here the code :

LookUp(EmployeeList,StartsWith(Text(Number),'search employeeNo'.Text)&&StartsWith(Text(Code),'search SecurityCode'.Text))

 

Thanks in advance for your response!

Categories:
I have the same question (0)
  • Verified answer
    Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @Anonymous ,

     

    If you are working with a large dataset, using the 'LookUp' function with conditions on multiple columns might not be the most efficient way, especially if the dataset is large. Here are a couple of alternatives that you can consider:

     

    1. Use the 'Filter' function along with 'First' to get the first matching record:

    First(
    Filter(
    EmployeeList,
    StartsWith(Text(Number), 'search employeeNo'.Text) &&
    StartsWith(Text(Code), 'search SecurityCode'.Text)
    )
    )

    This approach uses 'Filter' to filter the records based on your conditions and 'First' to get the first matching record. It's often more efficient than 'LookUp' when dealing with large datasets.

     

    2. Use the 'Search' function to search across multiple columns:

    Filter(
    EmployeeList,
    Search('search employeeNo'.Text, Number) > -1 ||
    Search('search SecurityCode'.Text, Code) > -1
    )

    This approach uses the 'Search' function, which allows you to search for a substring within a larger string. It can be useful for searching across multiple columns.

     

    3. If your data source supports delegation (SharePoint, SQL, etc.), you can delegate the search operation to the data source:

    Filter(
    EmployeeList,
    StartsWith(Text(Number), 'search employeeNo'.Text) &&
    StartsWith(Text(Code), 'search SecurityCode'.Text)
    )

     

    Make sure your data source supports delegation for the specific operations you are performing. Delegation is crucial for the efficient handling of large datasets. Choose the method that works best for your specific scenario and data source. Experiment with them and see which one provides the best performance for your use case.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • Community Power Platform Member Profile Picture
    on at

    Hi @Prabhakar_S 

     

    Thanks for your multiple suggestion. I try to use the second one but it look like something is missing. So i go for the last method using filter and it work as expected. 

     

    Thank you for your time!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard