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 filter not work...
Power Apps
Answered

Search filter not working on Excel data source in Canvas App

(2) ShareShare
ReportReport
Posted on by 20
Hi 
 
I am building a Canvas App in Power Apps connected to an Excel/OneDrive data source. I have a gallery/table with a search input field and I am trying to filter records by Program and School columns when the user types in the search box.
I tried the following formula on the Items property of my Table:
 
Filter('staff leave', 
    SearchInput3.Text in Program ||
    SearchInput3.Text in School
)
 
I also tried:
Search('staff leave', SearchInput3.Text, "Program", "School", "Title")
 
The formula shows an error when filtering the records when I type in the search box. The columns I want to search: Program and School.
 
What is the correct formula to search/filter across multiple text columns in an Excel-connected Power Apps
 
Any help would be greatly appreciated
 
Thank you
filter erro ( program and school ).png
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    769 on at
    Use Filter + StartsWith (Most Reliable)
     
    Filter(
        'staff leave',
        StartsWith(Program, SearchInput3.Text) ||
        StartsWith(School, SearchInput3.Text)
    )
     
    • Works well with Excel
    • Delegation-friendly (partially)
    • No errors
     
    Thanks
    Manish
     
  • Verified answer
    WarrenBelz Profile Picture
    154,777 Most Valuable Professional on at
    Firstly, Excel is really the "data source of last resort" and also storing the file in OneDrive will not allow sharing with others - you need to move it to a SharePoint Library. My first guidance I will offer is to put your data in a SharePoint List as this will at least get some consistant performance.
     
    Also Excel is not Delegation-friendly at the best of times, so if you have less than 500 records (you can increase this to 2,000 with your Data Row Limit ), you can do this (note that quotes "" are not required around the field names - this was changed some years back)
    With(
       {_Data: 'staff leave'},
       Search(
          _Data, 
          SearchInput3.Text, 
          Program, 
          School, 
          Title
       )
    )
    This effectively uploads the entire Table and then performs the Search "locally", eliminating any Delegation dependancy.
     
    Please ✅ 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    154,777 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ 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 answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard