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 / Sort and Filter galler...
Power Apps
Answered

Sort and Filter gallery with Search

(0) ShareShare
ReportReport
Posted on by 76

I have a gallery with a Sharepoint List data source.  There is a search box for the gallery, as well.  The gallery Items property is currently set to the following and works perfectly:

 

SortByColumns(Search([@'Employee Onboarding'], SearchInput1_1.Text, "Title", "Title"),"Title")

 

I have a column in my Sharepoint List called 'OnboardingComplete' with values of "Yes" and "No".  I want to filter the gallery to only show records where 'OnboardingComplete' is "No".  I'm struggling with how to incorporate this filter into the current Items property.  I tried the following and it did not work:

 

SortByColumns(Filter([@'Employee Onboarding'], 'OnboardingComplete' = "No"), ([@'Employee Onboarding'], SearchInput1_1.Text, "Title", "Title"),"Title")

 

I appreciate any suggestions!

 

Categories:
I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    PowerFx supports arbitrary nesting; you just have to make sure you're not breaking your old syntax as you go and your change to Filter broke your previous Search. Try this instead:

     

    Filter(SortByColumns(Search([@'Employee Onboarding'], SearchInput1_1.Text, "Title", "Title"),"Title"), 'OnboardingCOmplete' = 'No')
  • StaceyGriffeth Profile Picture
    76 on at

    @cchannon That did it!  Thanks so much!

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
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard