web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Searching in multiple ...
Power Apps
Answered

Searching in multiple columns when already filtering based on selection on other gallery.

(0) ShareShare
ReportReport
Posted on by 11
Hi,
 
I'm working in the asset checkout template, and want the search to search in more than one column. The gallery is filtering on the selection from another gallery and what's in the search box, but is only searching in one column (ProductName). I would also like it to search in 'ModelNo'. Here's my code, please help!
 
SortByColumns(Filter(Products, And(CategoryId = CategoriesGallery.Selected.CategoryId,SearchBoxText.Text in ProductName
        )
    ),
    If(
        category = "Reviews",
        "Comments",
        "Available"
    ),
    If(
        category = "Reviews",
        SortOrder.Descending,
        SortOrder.Ascending
    )
)
Categories:
I have the same question (0)
  • RS-29110619-0 Profile Picture
    11 on at
    Perfect, works like a dream, thank you!
  • Verified answer
    WarrenBelz Profile Picture
    153,529 Most Valuable Professional on at
    Probably something like this
    SortByColumns(
       Filter(
          Products, 
          And
    ​​​​​​​ ( CategoryId = CategoriesGallery.Selected.CategoryId, ( SearchBoxText.Text in ProductName Or SearchBoxText.Text in ModelNo ) ) ), If( category = "Reviews", "Comments", "Available" ), If( category = "Reviews", SortOrder.Descending, SortOrder.Ascending ) )
     
    Please click 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 giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard