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 Apps
Answered

Gallery Filter

(0) ShareShare
ReportReport
Posted on by 5

Sorry if this is a stupid question. I'm just starting to play with PowerApps and I want to only show records in my gallery that have the answer No in the column SaleRepApproved. The app created itself and gave the coding below.

 

SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

I've tried editing it a bunch of different ways and no such luck

Categories:
I have the same question (0)
  • timl Profile Picture
    36,682 Super User 2026 Season 1 on at

    Hi @Robert2 

    Assuming that SaleRepApproved is a text field, the following modification should work:

     

    SortByColumns(Filter('Sales Hand off', SaleRepApproved="No"), 
    "Title",
    If(SortDescending1, Descending, Ascending)
    )
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Robert2 

     

    Can you try to use the below expression to embed both the conditions if the SharePoint column is a single line text field:
     
    SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text) && SaleRepApproved = "No"), "Title", If(SortDescending1, Descending, Ascending))
     
    If this field is a Yes/No type sharepoint column then you can try out the below expression:
    SortByColumns(Filter('Sales Hand off', StartsWith(Title, TextSearchBox1.Text) && SaleRepApproved = "false"), "Title", If(SortDescending1, Descending, Ascending))
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Robert2 Profile Picture
    5 on at

    That worked perfectly!

     

    It was a yes/no field. I pasted that into the fx bar and it did exactly what I was hoping for.

     

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

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard