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 / Filter a Gallery by "D...
Power Apps
Answered

Filter a Gallery by "Does Not Contain" or "Not Like"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a Gallery that is connected to a Sharepoint List, and it is filtering based on what is entered into TextInput1 text box. So far the Items property of the gallery is set to :

Sort(Filter('Computer Tracker',StartsWith(Owner_x0020_First_x0020_Name,TextInput1.Text)||StartsWith(Owner_x0020_Last_x0020_Name,TextInput1.Text)),ID,Descending)

 

This is working fine, but I also need to hide gallery entries whose Owner_x0020_First_x0020_Name field is "Discarded". The options I have tried have not worked. Can someone help with this formula?

 

Thanks,

Andy

 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can try the formula below:

    SortByColumns(
     Filter(
     'Computer Tracker',
     Owner_x0020_First_x0020_Name <> "Discarded",
     StartsWith(Owner_x0020_First_x0020_Name, TextInput1.Text) ||
     StartsWith(Owner_x0020_Last_x0020_Name,TextInput1.Text)),
     ID,
     Descending)

    In a Filter expression, you can pass multiple conditions, and it will only return those items that match all of the conditions.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks! That helped.

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

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard