I am using CR9, I am taking a date input from a user, with that date I am selecting a list of criteria from a SQL view. The main component is called lease date. So if a client selects June it will pull back all data that was paid in June and those clients starting lease date, which could be anywhere from June backwards in this instant (never forward from the selection date). From this I need to compute the number of leases that are in the current month, then also go back and sum prior months if the lease started before 6/1. Any dates after the first of the month do not count for that month.
I have been able to get formulas that calculate the number of retro months, the starting month on an old lease date, and the sum of the current months, but can't figure out how to total the retro months.
My data is as follows: (assuming 6/1 start)
Lease Dates No. Retro Months Start Month
3/31/05 2 4
6/1/05 0 0
4/20/05 1 5
11/29/04 6 12
THe output should then look as follows:
June 4 (Current month i have working)
May 3
April 2
March 1
Feb 1
Jan 1
Dec 1
I do have it so the months will also print out in order based on the start date entered.
Any suggestions or ideas on how to go about this is greatly appreciated.
I have been able to get formulas that calculate the number of retro months, the starting month on an old lease date, and the sum of the current months, but can't figure out how to total the retro months.
My data is as follows: (assuming 6/1 start)
Lease Dates No. Retro Months Start Month
3/31/05 2 4
6/1/05 0 0
4/20/05 1 5
11/29/04 6 12
THe output should then look as follows:
June 4 (Current month i have working)
May 3
April 2
March 1
Feb 1
Jan 1
Dec 1
I do have it so the months will also print out in order based on the start date entered.
Any suggestions or ideas on how to go about this is greatly appreciated.