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 won't ...
Power Apps
Answered

Search function won't display items

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

My app is connected to Excel file hosted on OneDrive. 

 

I have a basic text input to act as a search bar. 

 

My Gallary.Items is set to a basic search formula:

 

Search(Table2Data,SearchBar.Text,"MDN")

But the gallary does not show any items when I launch the app unless I type something into the search box and then delete it. 

 

Am I missing something here?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is a known bug that happens with Search()

     

    To solve this add this to your code:

     

    If(
     IsBlank(SearchBar.Text),
     Table2Data,
     Search(
     Table2Data,
     SearchBar.Text,
     "MDN"
     )
    )

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I solved this problem as shown below:

     

    2017-10-19_13-59.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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard