Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Problem sort/filtering a gallery by date...

Hi there,


I wonder if you can help, i recently got some help with filtering and searching a gallery and the problem was solved for me except for one thing. The Sort option i wanted was to ascend and descend by Date but i also wanted to allow my team to search for a date, i can't currently get it to work, here is what i have.


My gallery is called 'BrowseGallery1_2', my data is 'BillableUtilisation' my field for the Date is called 'DateRecord' but due to the american format, i had to amend the field to the following: 'Text(ThisItem.DateRecord, "[$-en-US]dd/mm/yyyy")'.


Here is the code for the sort/filter for the Gallery:


SortByColumns(Filter(Search(BillableUtilisation,TextSearchBox1_2.Text,"ClientNameRecord","ProjectTitleRecord","VoucherPotRecord") ,StaffNameRecord = BrowseGallery1_1.Selected.b_CategoryName), "VoucherPotRecord",If(SortDescending1,Descending,Ascending))


This works fine, but if i add in "DateRecord" into that formula it will not work, is there a way i can get round this so that we can sort and search by Date?


Appreciate your help.


Thanks, Aaron



Helpful resources

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.


Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,710)