Hello @Phineas
This would be the gallery details if you want to only get the EmployeeName and Earliest AppearanceDate.
You will need to use AddColumns and GroupBy Functions, optionally you can add a dropdown. As for your syntax, we will need to modify it a avoid repetitions of code. This will be the structure that we will follow for the additional codes.
Filter(
Collection1,
If(
IsBlank(ComboBox1.Selected.Value)
,true
,Title = ComboBox1.Selected.Value
)
)
Updated code with EarliestAppearance which will contain the earliest appearance date.
Filter(
AddColumns(
GroupBy(
Collection1,
"Title", //Assuming Title contains employee name in sharepoint
"EmployeeDates" //You can decide ever name you like here
)
,"EarliestAppearanceDate" //You can decide also what name here
,Min(EmployeeDates,AppearanceDate)
)
,
If(
IsBlank(ComboBox1.Selected.Value)
,true
,Title = ComboBox1.Selected.Value
)
)
If you prefer a cleaner code, you can also remove columns that may not be relevant to this gallery.
Filter(
DropColumns(
AddColumns(
GroupBy(
Collection1,
"Title", //Assuming Title contains employee name in sharepoint
"EmployeeDates" //You can decide ever name you like here
)
,"EarliestAppearance" //You can decide also what name here
,Min(EmployeeDates,AppearanceDate)
),
"EmployeeDates"
)
,
If(
IsBlank(ComboBox1.Selected.Value)
,true
,Title = ComboBox1.Selected.Value
)
)