cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Doors1980
Helper I
Helper I

Combine Search and Sort by Columns formula

Hi All,

 

I'm sorting a gallery using this working formula:

 

Sort(Search( Search(Issues, "Closed", "Status"), "Columbus","Title" ), Modified, SortOrder.Descending)

 

I'd like to modify this to use SortByColumns so that I can have an ascending/decending icon with the onselect property of:

 

UpdateContext({SortDescending1: !SortDescending1})

 

What Should I change my original formula to?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Doors1980
Helper I
Helper I

Sorted it:

 

SortByColumns(Search( Search(Issues, "Closed", "Status"), "Columbus","Title" ), "Modified", If(SortDescending1, Descending, Ascending))

 

 

View solution in original post

2 REPLIES 2
Doors1980
Helper I
Helper I

Sorted it:

 

SortByColumns(Search( Search(Issues, "Closed", "Status"), "Columbus","Title" ), "Modified", If(SortDescending1, Descending, Ascending))

 

 

View solution in original post

Cool.

So in words ... what is Search( Search(Issues, .....  doing ? Saying ?

DatabaseMX ('mx')
Microsoft Access MVP

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 (2,377)