How to get the count of received and closed tickets per month/year based on the sample data below?
Ticket | Received date | Closed date |
Ticket1 | 01-Jan-2017 | 02-Jan-2017 |
Ticket2 | 03-Jan-2017 | 01-Feb-2017 |
Ticket3 | 05-Jan-2017 | |
Ticket4 | 01-Feb-2017 | 04-Feb-2017 |
Ticket0 | 29-Dec-2017 | 11-Jan-2017 |
Expected result:
Year | Month | Received | Closed |
2016 | December | 1 | 0 |
2017 | January | 3 | 2 |
2017 | February | 1 | 2 |
Appreciate the help!