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 / Filter browsegallery u...
Power Apps
Answered

Filter browsegallery using checkbox

(0) ShareShare
ReportReport
Posted on by 41

Have been trying to find this in the forum but haven't quite found the exact solution, so apologies if this is a common question.

 

I have a browsegallery which is set up to display Items using the following function:

 

SortByColumns(Filter([@'List Name'], StartsWith(Title, TextSearchBox1_1.Text)), "Priority", SortOrder.Ascending, "Title", SortOrder.Ascending)

 

I have added a checkbox called New and would like, when the box is checked, to only show titles that have the text "(New)" in a column called 'New'.

 

Could anyone please help me nest that checkbox filter within the existing browsegallery Items function?

 

Thanks!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @jdeitell ,

     

    Please try below formula:

    SortByColumns(Filter(Search([@'List Name'], If(CheckBoxNew.Value, "New", ""), "New"), StartsWith(Title, TextSearchBox1_1.Text)), "Priority", SortOrder.Ascending, "Title", SortOrder.Ascending)

     

    Best regards,

  • Verified answer
    WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    Hi @jdeitell 

    Firstly I suggest you rename your checkbox to something other than the field name as this can cause Ambiguity - I have given an example below as ckNew

    SortByColumns(
     Filter(
     [@'List Name'], 
     StartsWith(
     Title, 
     TextSearchBox1_1.Text
     ) &&
     (
     !ckNew.Value ||
     New = "(New)"
     )
     ), 
     "Priority", 
     SortOrder.Ascending, 
     "Title", 
     SortOrder.Ascending
    )

     

    Please click Accept as solution 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 Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard