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

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
Level: Powered On

Re: Combine Search and Sort by Columns formula

Sorted it:

 

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

 

 

View solution in original post

2 REPLIES 2
Doors1980
Level: Powered On

Re: Combine Search and Sort by Columns formula

Sorted it:

 

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

 

 

View solution in original post

mx
Level 8

Re: Combine Search and Sort by Columns formula

Cool.

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

DatabaseMX ('mx')
Microsoft Access MVP

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 180 members 6,000 guests
Please welcome our newest community members: