I’m a psychotherapist and my clients come at irregular intervals of 2 - 3 - 4 weeks. I want to know how many current clients I need to have, to result in an average of say 15 appointments in each week. Otherwise I have too many or too few clients.
A “current client” is defined as someone who currently has an appointment booked, whether a week or a month in the future.
My booking system gives me a list of (i) client names (ii) the date of each appointment (iii) THE DATE EACH APPOINTMENT WAS BOOKED - this is important.
I can trivially order these in date order and count how many appointments I had in any one week. Then, in the same date ordered list, I need to count how many names have a future appointment booked, which was booked IN or BEFORE the week in question. These are appointments for CURRENT clients. Any appointment booked AFTER the current week will be for someone who became a new client after that week, rather than being a “current client” during that week (anyway that is an accurate assumption.)
So I need to list the appointments by date; take any one given week; count the appointments in that week; then go down the list of later appointments and eliminate any booked after the given week ie to leave behind only appointments booked by clients current in the given week; then count the number of unique names in the reduced list. And make it simple enough to do repetitively.
I end up with 3 columns: the date of the week, the number of appointments in that week, and the number of current clients in that week.
The bit I can do is to list in date order! Any help with any part of the rest would be greatly appreciated.
Many thanks
Andrew, Bristol UK