My dataset is a list of user invoices.
I can easily show how many invoices I have per month (aggregate the invoice date per month).
Now how can I show per month how many new users are invoiced?
Let's say I have the following data
invoice_id | user_id | date |
---|---|---|
1 | 1 | Oct |
2 | 1 | Nov |
3 | 2 | Nov |
I have 1 invoice in October and 2 in November.
I have 1 new invoiced user in October and 1 new invoiced user in November.
Edit: Basically I would like to filter out invoices and keep only the first one for each user.