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 Box - Sorting &...
Power Apps
Answered

Search Box - Sorting & Filtering

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All - 

 

Hoping someone can help me out here.

 

I currently have a search box function that allows me to search in my database based on the patients name. I would love to go one step further and be able to search for the patient still but only if they have not been discharged, so discharge = Off or False. I think I need a nested Sort statement, however, can't seem to figure it out. 

 

 

My Current Code is: 

 

Filter( PediatricSurgeryList, StartsWith( Patient_x0020_Name, TextSearchbox1.Text ) ) 

 

I now want to Filter and search in this exact same way, but ONLY if Discharge = False, Off

 

Any help is greatly apreciated!

Brandon 

 

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

    Hi @Anonymous

     

    Filter() function accepts multiple logic by putting , between statements. So to filter out all dischaged patients simply put this in Filter()

     

    Filter( 
     PediatricSurgeryList, 
     StartsWith( 
     Patient_x0020_Name, 
     TextSearchbox1.Text 
     ),
     Discharged <> false 
    ) 

    This will work if your column is named DIscharged (If not change to the column name) and if it stores values false or true (If not change to whatever value you want to not show)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This worked out perfectly, thank you so much for your help!

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard