I have to create a report in which one col is to sum
the total from Ist april to previous month (i.e. the month
before the current month)
this is my formula
//Current Year's April to End of Last Month
if month({PPFTXN.VOUCHDT}-1) in [5,7,10,12] then
if {PPFTXN.VOUCHDT} >= date(year({PPFTXN.VOUCHDT}),4,1) and
{PPFTXN.VOUCHDT} <= date (year({PPFTXN.VOUCHDT}),month({PPFTXN.VOUCHDT}-1),31) then
{@subs}
else
{@SUBS}; //@subs is nothing but cheking for null//
if month({PPFTXN.VOUCHDT}) in [6,9,11] then
if {PPFTXN.VOUCHDT} >= date(year({PPFTXN.VOUCHDT}),4,1) and
{PPFTXN.VOUCHDT} <= date (year({PPFTXN.VOUCHDT}),month({PPFTXN.VOUCHDT}-1),30) then
{@subs}
else
IF ({PPFTXN.VOUCHDT}) in (date(YEAR({PPFTXN.VOUCHDT}),04,01) to
date(YEAR({PPFTXN.VOUCHDT}),04,30)) THEN 0
This formula works well but it is not giving the total
upto previous month and moving only the previous month
figures instead of cumulating.
I hope i am clear.
bye
the total from Ist april to previous month (i.e. the month
before the current month)
this is my formula
//Current Year's April to End of Last Month
if month({PPFTXN.VOUCHDT}-1) in [5,7,10,12] then
if {PPFTXN.VOUCHDT} >= date(year({PPFTXN.VOUCHDT}),4,1) and
{PPFTXN.VOUCHDT} <= date (year({PPFTXN.VOUCHDT}),month({PPFTXN.VOUCHDT}-1),31) then
{@subs}
else
{@SUBS}; //@subs is nothing but cheking for null//
if month({PPFTXN.VOUCHDT}) in [6,9,11] then
if {PPFTXN.VOUCHDT} >= date(year({PPFTXN.VOUCHDT}),4,1) and
{PPFTXN.VOUCHDT} <= date (year({PPFTXN.VOUCHDT}),month({PPFTXN.VOUCHDT}-1),30) then
{@subs}
else
IF ({PPFTXN.VOUCHDT}) in (date(YEAR({PPFTXN.VOUCHDT}),04,01) to
date(YEAR({PPFTXN.VOUCHDT}),04,30)) THEN 0
This formula works well but it is not giving the total
upto previous month and moving only the previous month
figures instead of cumulating.
I hope i am clear.
bye