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

(2) ShareShare
ReportReport
Posted on by 12
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
    155,838 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
    12 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard