I have a dataset that has an Event Name and an Event Date. What I want to do, is to be able to count how many Events are within the next 3 months by row. So here is an example of the data:
| Event_Name | Event_Date |
| Event1 | 17/03/2021 |
| Event6 | 05/04/2021 |
| Event35 | 06/04/2021 |
| Event78 | 09/02/2020 |
What I want is to loop through every record to see if any of the other Events are within the next 3 months, if they are, then it adds 1 to a count. The desired output would then look like this:
| Event_Name | Event_Date | Upcoming_Events |
| Event1 | 17/03/2021 | 2 |
| Event6 | 05/04/2021 | 1 |
| Event35 | 06/04/2021 | 0 |
| Event78 | 09/02/2020 | 0 |
Any ideas?