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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a formula for a running 12 month sales field...

Status
Not open for further replies.

arachnoid

Programmer
Jun 14, 2002
108
US
I need a date function, or a formula that will allow me to sum the past 12 months sales in a constant rolling format.

Any suggestions???

Thanks in advance.
 
Try:

{table.date} >= dateadd("m",-12,currentdate)
and
{table.date} <= currentdate

This can be in a Running Total in the Evaluate usea formula.

Or you can use it in a formula to be summed by making it an IF:

If {table.date} >= dateadd(&quot;m&quot;,-12,currentdate)
and
{table.date} <= currentdate then
{Table.Value}
else
0

You can place this formula in the details, right click it and select Insert Summary->Sum

-k
kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top