I have a Sharepoint list Test and I want to put only the most recent records of each project in a gallery.
The list looks like this, the first 4 characters of the identifier is the project code:
and wanted result is

I made a collection col2 by
ClearCollect(col1,SortByColumns(Test,"Identifier",Descending));
ClearCollect(col2,AddColumns(col1,"Project",Left(Identifier,4)));
ClearCollect(colLatest,GroupBy(col2,"Project","Rest"));
Set(NumberOfProjects,CountRows(colLatest));
but then I have to use following instruction to display the values in the gallery [Items:SortByColumns(FirstN(colLatest,NumberOfProjects), "Project")]:
First(ThisItem.Rest).Identifier&"-"&First(ThisItem.Rest).Field1
Can I put the first record of the embedded table of each record directly in the gallery (or a collection)?