Hi everyone,
I have a collection in my App. It has four columns - Date, Person, number and created. Acually it has more columns, but basiclly it looks like below:
Date Person created
01.01.2023 Michael 01.02.2023
01.01.2023 Michael 01.03.2023
01.01.2023 Michael 01.04.2023
01.01.2023 Michael 01.05.2023
01.01.2023 Michael 01.06.2023
01.02.2002 Michael 01.06.2023
01.01.2023 Anna 01.02.2023
01.01.2023 Anna 01.03.2023
01.02.2002 Anna 01.06.2023
I'd like to count the rows of each person with the same date. If it's even, remove all records, if uneven, save only the the last created and remove the others. The result should look like this:
Date Person created
01.01.2023 Michael 01.06.2023
01.02.2002 Michael 01.06.2023
01.02.2002 Anna 01.06.2023
Does anyone has an idea?
Thank you.