Hi,
I'm not even sure how to phrase this problem, but I'm hoping some of you clever people can help me out with this.
I have a dataset which contains customer names and dates of opening and closing accounts. I would like to be able to see the number of new customers and customers who have closed down all their accounts on a month-by-month basis.
I was able to create the formula for getting new customers by following another thread in this forum. However, the part about counting the number of customers who have closed all of their accounts, as well as tracking that to a specific month, is a task too great for myself.
Below is what I want to achieve. Keep in mind that only customer AA should be counted as "Closed" since all accounts have been closed, whereas customer CC still has one account remaining.
Thanks in advance!
Data set
<colgroup><col width="158" span="3" style="width:119pt"> </colgroup><tbody>
</tbody>
Expected results
<colgroup><col width="158" span="3" style="width:119pt"> </colgroup><tbody>
</tbody>
I'm not even sure how to phrase this problem, but I'm hoping some of you clever people can help me out with this.
I have a dataset which contains customer names and dates of opening and closing accounts. I would like to be able to see the number of new customers and customers who have closed down all their accounts on a month-by-month basis.
I was able to create the formula for getting new customers by following another thread in this forum. However, the part about counting the number of customers who have closed all of their accounts, as well as tracking that to a specific month, is a task too great for myself.
Below is what I want to achieve. Keep in mind that only customer AA should be counted as "Closed" since all accounts have been closed, whereas customer CC still has one account remaining.
Thanks in advance!
Data set
Name | Opened | Closed |
AA | 2016-01-01 | 2016-04-01 |
AA | 2016-02-01 | 2016-04-01 |
AA | 2016-03-01 | 2016-04-01 |
BB | 2016-04-01 | |
BB | 2016-05-01 | |
BB | 2016-06-01 | |
CC | 2016-07-01 | |
CC | 2016-08-01 | 2016-10-01 |
CC | 2016-09-01 | 2016-10-01 |
<colgroup><col width="158" span="3" style="width:119pt"> </colgroup><tbody>
</tbody>
Expected results
Month | Opened | Closed |
2016-01-01 | 1 | 0 |
2016-02-01 | 0 | 0 |
2016-03-01 | 0 | 0 |
2016-04-01 | 1 | 1 |
2016-05-01 | 0 | 0 |
2016-06-01 | 0 | 0 |
2016-07-01 | 1 | 0 |
2016-08-01 | 0 | 0 |
2016-09-01 | 0 | 0 |
2016-10-01 | 0 | 0 |
<colgroup><col width="158" span="3" style="width:119pt"> </colgroup><tbody>
</tbody>