Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I would like to compare the turnover for previous years at the same date.
For instance we are the 15th of April 2014, so I would like to compare the turnover at the same date for previous years:
I mean trurnover in 15th April 2009, 15th April 2010, 15 th April 2011 ... 'till 15th 2014 in order to compare the same situation over the years.
An idea how to do that ?
Thanks.
Darek,
I found the issue.
It works when i insert manually the date:
sum({$-(<LESS_YEAR_FL={1}>+<STANDARD_DATE={">$(='11/04/1904')"},SAME_YEAR_FL={1}>)}VAL_SO_NET_PRICE)
But the result is not correct when I use the expression
sum({$-(<LESS_YEAR_FL={1}>+<STANDARD_DATE={">$(=makedate(1904,month($(=v_sel_date)),day($(=v_sel_date))))"},SAME_YEAR_FL={1}>)}VAL_SO_NET_PRICE)
Looks like date formatiing issue....
check what gives you:
=makedate(1904,month($(v_sel_date)),day($(v_sel_date)))
in text field.
Check what value has your v_sel_date variable. I have numeric representation like 38428 (in settings/variable overview ).
Try to change in your calendar object where you setting v_sel_date format (overide document settings/Number tab) to date.
OK works with:
=makedate(1904,month(v_sel_date),day(v_sel_date)))
Thanks a lot. Good job.