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
Power Apps Staff CarlosFigueira
Power Apps 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 Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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