Quarters that start on Monday regardless of when the month ends
So I'm currently using this 'Q' & Ceil(Month (TempDate)/3) AS Quarter, to create my quarters.
My requirements are to create quarters that always end on sunday, regardless when the month/quarter actually ends.
For ex: July 2011 and the third quarter began on friday, I would need any transactions for that Friday to be added into the previous quarter and the new quarter to begin on Monday.
Any idea on how to do this, I would need something that would change from year to year, depending on the days.