cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Desmond1
Frequent Visitor

Search box & sort in gallery item property

Hi,

 

I was trying to sort my gallery using one of the columns in my sharepoint list with below formula in item property however i also need to display a search box where the 2nd formula comes in.. how do i combine both of this to make it work? i tried ";" doesnt work that way..

 

Sort('data_1',SortColumn,SortOrder.Ascending)

 

Filter('data_1',StartsWith(Title,TextSearchBox1.Text))

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Hey @Desmond1, try the below:

 

Filter(Sort('data_1',SortColumn,SortOrder.Ascending),

StartsWith(Title,TextSearchBox1.Text))

 

You want to add the sort formula into your filter formula with commas as done above.

 

I'm also not 100% sure about your filter formula for the search bar, I tend to use the search formula which always works well. I'd try your filter formula by itself to make sure it's working, if so, the above formula should pull through! If you were going to use the search formula instead your formula would be:

 

Search(Sort(date_1,SortColumn,SortOrder.Ascending),
SearchBox1.Text,"Columns")

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hey @Desmond1, try the below:

 

Filter(Sort('data_1',SortColumn,SortOrder.Ascending),

StartsWith(Title,TextSearchBox1.Text))

 

You want to add the sort formula into your filter formula with commas as done above.

 

I'm also not 100% sure about your filter formula for the search bar, I tend to use the search formula which always works well. I'd try your filter formula by itself to make sure it's working, if so, the above formula should pull through! If you were going to use the search formula instead your formula would be:

 

Search(Sort(date_1,SortColumn,SortOrder.Ascending),
SearchBox1.Text,"Columns")

 

Desmond1
Frequent Visitor

Thanks alot! both works! 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,042)