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

Filter Status = "Active"

I am trying to filter a datasource with over 50K records and only want to display the records that have a Status = "Active".  

 

Where int the items data would I select from the below? 

 

SortByColumns(Search('[dbo].[CRMCASE]', TextSearchBox1.Text, "ACCTNO","ADDRESS1","CASECATEGORY","CASENO","CASETOPIC","DRIVER"), "CREATEDON", If(SortDescending1, Descending, Ascending)))

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Filter Status = "Active"

I assume you want to continue to use the search box but filter the results to the Active records:

 

You could try this:

SortByColumns(Filter(
Search('[dbo].[CRMCASE]', TextSearchBox1.Text, "ACCTNO","ADDRESS1","CASECATEGORY","CASENO","CASETOPIC","DRIVER"), 'Status' = "Active"), 
"CREATEDON", If(SortDescending1, Descending, Ascending)))


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Filter Status = "Active"

I assume you want to continue to use the search box but filter the results to the Active records:

 

You could try this:

SortByColumns(Filter(
Search('[dbo].[CRMCASE]', TextSearchBox1.Text, "ACCTNO","ADDRESS1","CASECATEGORY","CASENO","CASETOPIC","DRIVER"), 'Status' = "Active"), 
"CREATEDON", If(SortDescending1, Descending, Ascending)))


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

bmarcowka
Level: Powered On

Re: Filter Status = "Active"

Worked perfectly.  You available for contract work?  😉

Super User
Super User

Re: Filter Status = "Active"

I am glad it worked for you. I am not a consultant (just a corporate cube jocky) but if you are looking for a consultant to help you out with a project I would recommend reaching out to the good folks at PowerApps911.com ( @Shanescows ). 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,636)