cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aysan
Helper III
Helper III

Sort and Filter - viewing data source items

Hi,

I have connected the app to a data source that contains many rows. I am using the Search box to search, I was wondering how to filter and not show the garbage information ( as the data source is a sandbox environment). for example how to filter Customer name starting with # or ( and prevent it from appearing when the data source is loading

Aysan_1-1614700301410.png

 

Many thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Colby
Advocate I
Advocate I

Sorry @Aysan, just replace accounts source in your search.

 

Sort(Search(Filter(Accounts, IsMatch(Name,"[a-z]+")), TextInputSearch.Text,"Name"), Name, Ascending)

 

View solution in original post

5 REPLIES 5
Colby
Advocate I
Advocate I

So you could wrap a filter function around the search where you filter out the text you don't want to see with IsMatch and a regular expression like so Filter(Accounts, IsMatch(Name,"[a-z]+"))

Hi,

Thanks for your reply, sorry I am new to power apps 

Could you please add the filter in the formula where it makes sense? 

Sort(Search(Accounts, TextInputSearch.Text,"Name"), Name, Ascending) 

 

Anonymous
Not applicable

Hi @Aysan ,

 

Im not sure if it will work but try this:

 

Sort(
Search(Filter(Accounts, IsMatch(Name,"[a-z]+")),TextInputSearch.Text,"Name"), Name, Ascending) 

 

Colby
Advocate I
Advocate I

Sorry @Aysan, just replace accounts source in your search.

 

Sort(Search(Filter(Accounts, IsMatch(Name,"[a-z]+")), TextInputSearch.Text,"Name"), Name, Ascending)

 

View solution in original post

Aysan
Helper III
Helper III

Thank you both for your replies 🙂 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,800)