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 / 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)
  • Verified answer
    WarrenBelz Profile Picture
    154,488 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
  • RS-29110619-0 Profile Picture
    11 on at
    Perfect, works like a dream, thank you!

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

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard