@kinghnvn ,
I meant the code I posted as the Items of the gallery
GroupBy(
YourListName,
"Name",
"StartDate",
"EndDate",
"StartTime",
"EndTime",
"Data"
)
you probably need something like this
SortByColumns(
AddColumns(
GroupBy(
Filter(
'Desk Reservations',
'Reserved By'.Email = currentUser.Email &&
'Check Out From Number' >= Value(Text(Now(),"yyyymmddhhmm"))
),
"Name",
"StartDate",
"EndDate",
"StartTime",
"EndTime",
"Data"
),
"SortNo",
First(Data).'Check Out From Number'
),
"SortNo",
Ascending
)
but again I must ask (as per your previous post) why are you converting dates to numbers (this was necessary some time ago before dates were Delegable, so maybe you have an old template)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps