Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Sales by quarter

Status
Not open for further replies.

tjbennett

MIS
Feb 8, 2005
95
US
Can anyone start me in the right direction for writing a formula to add sales by quarter? I want to check if today’s date is say - in the 2nd quarter of 2005 then add 2nd Q of '05 + 1st Q of '05 + 4 Q of '04. I will always be adding the 3 quarters but depending on when I run the report depends on what quarters to add. Also, not real sure how to add quarters from a previous year. I would really appreciate any guidance from the guru's here.

Thanks.
 
Try a record selection formula like:

{table.date} in dateadd("q",-2,currentdate-day(currentdate)+1) to currentdate

In the report, if you want to compare results between quarters, you can group on {table.date}, using "print on change of quarter".

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top