Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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!

 

  • StaceyGriffeth Profile Picture
    76 on at
    Re: Sort and Filter gallery with Search

    @cchannon That did it!  Thanks so much!

  • Verified answer
    cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Sort and Filter gallery with Search

    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')

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard