Hi,
Assuming you want quarters based on Calendar Year (ie Q1=Jan,Feb,Mar Q2=Apr,May,Jun etc) and that you have already extracted the month number, you could calculate your quarter number as follows:
ceiling(([Your Month Item]-1)/3) + 1
Otherwise, if you quarters started in a different month, you would probably use an if/then/else calculation:
if ([Your Month Item] >=4 and [Your Month Item] <=6) then (1) else if ([Your Month Item] >=7 and [Your Month Item] <=9) then (2) else if ([Your Month Item] >=10 and [Your Month Item] <=12) then (3) else (1)
The above assumes Q1 starts in April.
Once you have your quarter number, you can combine it with your year to make a calendar quarter as follows:
[Your Year Item] * 10 + [Your Quarter Item]
This would give you 20064 for Q4 of 2006
Regards,
MF.