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 / Search, Filter, Sort o...
Power Apps
Suggested Answer

Search, Filter, Sort on Gallery

(1) ShareShare
ReportReport
Posted on by 49
Hello!
 
Stuck on adding search feature to gallery of items. Have filter and sort in place with filter based on hard coded choices as seen here.
If(
    Dropdown1.Selected.Value = "On Order",
    Sort(
        Filter(
            ToolingAndSuppliesEntries,
            OnOrder = true
        ),
        Created,
        SortOrder.Descending
    ),
    Dropdown1.Selected.Value = "Not on Order",
    Sort(
        Filter(
            ToolingAndSuppliesEntries,
            OnOrder = false
        ),
        Created,
        SortOrder.Descending
    ),
    Dropdown1.Selected.Value = "All",
    Sort(
        Filter(
            ToolingAndSuppliesEntries,
            OnOrder = false Or OnOrder = true
        ),
        Created,
        SortOrder.Descending
    )
)
Need to add search based on some controls in the gallery like the following:
PONum-TextInput1
CommonName-Label1
MachineName-Label2
PartNum-Label3
Plant-Label4
 
Need help with where to put the search code in the above code snippet.
Have a text input in place for entering search text but stuck on how to format the code etc.

Thanks all!
 
 
 
Thanks all!
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at
    Structure would be something like this
    Search(
       Sort(
          Filter(
             ToolingAndSuppliesEntries,
             (
                Dropdown1.Selected.Value = "On Order" &&
                OnOrder
             ) ||
             (
                 Dropdown1.Selected.Value = "Not on Order" && 
                 !OnOrder
             ) ||
             Dropdown1.Selected.Value = "All"
          ),
          Created,
          SortOrder.Descending
       ),
       YourSearchBoxHere,
       YourSearchFieldsHere
    )
     
    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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard