I am looking to obtain a count of all dates that are less than each month on a table. Please see attachment for reference. In other words, I need a cumulative count of how many enrollments the company has so far going into each month.
The 2019-Dec line should count all dates less than 12/1/2019
The 2020-Jan line should count all dates less than 1/1/2020
The 2020-Feb line should count all dates less than 2/1/2020
and so on...
Is there some way to dynamically reference the date of each line? Almost like curdate, but the date of each line instead.
I hope I have explained this adequately. Thank you in advance for any help I receive.