Hello
How can I create a collection where I select unique email addresses, but the most recently added one in case of duplicates? This database only has the "email" adress column.
I been tryning with this code , but maybee it sholud be lastN , tricky for me
ClearCollect(UniqueEmails;
Distinct(
AddColumns(
studentloggain;
"MaxCreated";
Max(Value(Filter(studentloggain; email = ThisRecord.email).Created))
);
email
)
)