cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tezz233
Level: Powered On

Add Filter to Formula

SortByColumns(Search(TABLE, TextSearchBox1.Text, "PrimaryId", "Please_enter_your_full_name", "Work_Order"), "PrimaryId", If(SortDescending1, Ascending, Descending))

How do I add a Filter to the above code? I essentially just want to Filter out things where Approve = "1". Tried every combination I can think of but the formula just isn't happy.

1 REPLY 1
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Add Filter to Formula

You can use the result of the Filter function as the argument of the Search function:

SortByColumns(
    Search(
        Filter(TABLE, Approve <> "1"),
        TextSearchBox1.Text,
        "PrimaryId",
        "Please_enter_your_full_name",
        "Work_Order"),
    "PrimaryId",
    If(SortDescending1, Ascending, Descending))

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,741)