Hi All,
I have a SharePoint list that records the data loads between databases. This contains all the records for historic loads but I want to show the latest record for each job in a gallery.
I have the following fields :
Title - Name of the job
Start Time - Date/Time field
End Time - Date/Time field
Elapsed Time - Calc based on the Start and End Time
Rows Updated - Number
Status - Choice field
My logic in the gallery item was originally :
SortByColumns(Filter([@'SharePointListName'],StartsWith(Title,TextSearchBox1.Text)),"Title",If(SortDescending1,Descending,Ascending))
This returned all records, however i only need the latest record. The jobs dont always run on the same day so i need the max record i think and i need to apply a group by? These are the bits i'm not sure on. I have done the group by but it only returns the Title field :
GroupBy(
SortByColumns(
Filter([@'SharePointListName'],StartsWith(Title,TextSearchBox1.Text)),
"Title",
If(SortDescending1,Descending,Ascending)),
"Title","Grouped")
How do i add the latest record fields (Start Time, End Time, Elapsed Time, Rows Updated, Status) to the gallery?
Thanks,
Matt