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 / Want to add an additio...
Power Apps
Unanswered

Want to add an additional filter to my Gallery Code.

(0) ShareShare
ReportReport
Posted on by 643

Currently I have a Gallery with a search bar that when blank sorts the table into Priority order Ascending. I would also like to add a filter to this that only shows items with a status of in progress. The status is a text column FYI.

 

jamescosten_0-1711099654429.png

 

If(
    !IsBlank(TextInput2_4.Text),
    (Search(
        'WTRF Database',
        TextInput2_4.Text,
        "WTRF_x0020_Number_x0020_Text",
        "ToolNumberText",
        "Customer_x0020_Text"
    )),
    Sort(
        'WTRF Database',
        'Priority Order'.Value,
        SortOrder.Ascending
    )
)

 

Any thoughts appreciated. 

 

Kind Regards

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

    Hi @jamescosten 

    If you want to filter the records by status irrespective of whether the search textbox is filled in or not, you could wrap your entire expression around a call to Filter.

    Filter(
     If(
     !IsBlank(TextInput2_4.Text),
     (Search(
     'WTRF Database',
     TextInput2_4.Text,
     "WTRF_x0020_Number_x0020_Text",
     "ToolNumberText",
     "Customer_x0020_Text"
     )),
     Sort(
     'WTRF Database',
     'Priority Order'.Value,
     SortOrder.Ascending
     )
     ),
     Status="In Progress"
    )

     

  • jamescosten Profile Picture
    643 on at

    I tried this and it returns nothing on the Gallery, But does not error?

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard