I have a dataset which roughly looks like this:
ID Product Time
C0014 X1 2020-05-01
00:00:04
C4321 X2 2020-05-01
00:00:06
C0014 X1 2020-05-01
00:00:08
I would like to count the first occurence of every unique ID per product per month. So if a Product ID appears once in January and then in February, I only want to count it in January for that specific Product. Unfortunately, I have no clue how to do that. Thank you for any help!