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

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

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
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard