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 / Filtering a gallery vs...
Power Apps
Answered

Filtering a gallery vs. table

(0) ShareShare
ReportReport
Posted on by 4
I am putting together an inventory app and used the the following to search by two columns in my list and further refine with filters. It works great if I search a table but does not work with a gallery and I don't understand why. Please let me know if you have any ideas about how to modify for a gallery.
 
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,621 Most Valuable Professional on at
    Firstly can you please remember to post your code in Text - saves re-typing here. The code below is OCR'd so watch spelling.
     
    Your code is lacking some proper and/or separation, so try this first
    Filter(
       'Chemical Inventory’, 
       'CAS#' = Textlnput3.Text || 
       StartsWith(
          Title, 
          Textlnput3.Text
       ), 
       Len(drpDepartment.Selected.Value) = 0 || Department.Value = drpDepartment.Selected.Value,
       Len(drpBuilding.Selected.Value) = 0 || Building.Value = drpBuilding.Selected.Value,
       Len(drpStatus.Selected. Value) = 0 || Status.Value = drpStatus.Selected.Value
    )
    however what is not working on the gallery ? There should not be any difference between filtering a Data Table and a Gallery.
     
    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  
  • JL-20031955-0 Profile Picture
    4 on at
    Hi, 
    Thank you for the response, this fixed my issue. I figured out the problem with my code was I needed to select a choice from my 3 dropdowns after entering text in the search box.

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

#2
11manish Profile Picture

11manish 324

#3
Haque Profile Picture

Haque 303

Last 30 days Overall leaderboard