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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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