Hi.
My record selection formula is as follows:
{table.date} in {?sdate} to {?edate}
or {table.date} in {?comp_sdate} to {?comp_edate}
Formula for sales is simply:
if {table.date} in {?sdate} to {?edate}
then {sales.amount}
else 0
(And similar to comparison formula for comparison date range.)
By this I list customers sales when user gives dates (e.g. years 2004 compared to 2003). It works fine with the given formula, which then is subtotaled and grandtotaled.
Now my boss wants me to make sales YTD and sales LYTD, but all attempts to make it with this record selection formula has not given me right results. So, what is wrong? should I rewrite the record selection formula?
I recall I would have seen in 'Select Expert'-box YTD-possibility.
Thanks in advance!
Hoppeli
My record selection formula is as follows:
{table.date} in {?sdate} to {?edate}
or {table.date} in {?comp_sdate} to {?comp_edate}
Formula for sales is simply:
if {table.date} in {?sdate} to {?edate}
then {sales.amount}
else 0
(And similar to comparison formula for comparison date range.)
By this I list customers sales when user gives dates (e.g. years 2004 compared to 2003). It works fine with the given formula, which then is subtotaled and grandtotaled.
Now my boss wants me to make sales YTD and sales LYTD, but all attempts to make it with this record selection formula has not given me right results. So, what is wrong? should I rewrite the record selection formula?
I recall I would have seen in 'Select Expert'-box YTD-possibility.
Thanks in advance!
Hoppeli