I need a report that will compare sales totals this week with sales totals this week last year. What is the best way to get this? I was thinking I could use the datediff formula something like:
if DateDiff(????,CurrentDate,{ARN_InvoiceHistoryHeader.InvoiceDate}) =1 then
{@Invoice total}
else
0
But I don't really know how to get it right. I know I would need at least 2 formulas like this-one for this week and one for this week last year. Then I would need a similar one for last week and last week last year and so on. If it is not too complicated it would be nice for it to change with the current date- i.e the current weeks totals always displayed at the top of the report.
The result report would be something like:
Sales Totals '03 Totals '02
Week 49 5555.23 4525.15
Week 50 1256.45 556.22
Week 51 10.02 54.21
Week 52
Week 1 ('04 vs '03)
Will the function "WW" do the trick?
Thanks in advance,
Sunny
if DateDiff(????,CurrentDate,{ARN_InvoiceHistoryHeader.InvoiceDate}) =1 then
{@Invoice total}
else
0
But I don't really know how to get it right. I know I would need at least 2 formulas like this-one for this week and one for this week last year. Then I would need a similar one for last week and last week last year and so on. If it is not too complicated it would be nice for it to change with the current date- i.e the current weeks totals always displayed at the top of the report.
The result report would be something like:
Sales Totals '03 Totals '02
Week 49 5555.23 4525.15
Week 50 1256.45 556.22
Week 51 10.02 54.21
Week 52
Week 1 ('04 vs '03)
Will the function "WW" do the trick?
Thanks in advance,
Sunny