I have a query in which I need to get the number of periods between and including the start date and end date for a project to use in a calculation. There are 13 periods in a year. I can't use exact dates for the periods because they change each year. The period is a field in a table and is stored like this:
Starte Date End Date
1.1 3.1
2.1 5.11
3.09 2.1
1.1 is period 1 in 2010, 3.09 is period 3 in 2009, 5.11 is period 5 in 2011 etc.
I then have a calculation that uses the number of periods between and including the start date and end date.
example:
start date 11.09 end date 3.1 would be 6 periods because you count the beginning period and include all the way to period 13 for that year then 3 periods for 2010, equalling 13. I'm great with the calculation but I cant figure out how to get the number of periods when an end date year is different than the start date year. its not a problem in the same year.
thank you
Starte Date End Date
1.1 3.1
2.1 5.11
3.09 2.1
1.1 is period 1 in 2010, 3.09 is period 3 in 2009, 5.11 is period 5 in 2011 etc.
I then have a calculation that uses the number of periods between and including the start date and end date.
example:
start date 11.09 end date 3.1 would be 6 periods because you count the beginning period and include all the way to period 13 for that year then 3 periods for 2010, equalling 13. I'm great with the calculation but I cant figure out how to get the number of periods when an end date year is different than the start date year. its not a problem in the same year.
thank you
Comment