crystal reports 2008 - Need values returned from previous month-end date -
can please guide me how done. i'm using crystal 2008.
i want pull in data previous month-end , put in same row current month, there 2 figure columns: 1 month-end figures , other previous month-end figures. want this:
month-end account figure prev month-end figure 1/31/2014 21a3233 11 2/28/2014 3285592 22 11 3/31/2014 64eg544 33 22 4/30/2014 e5vg96a 44 33 5/31/2014 poiue52 55 44 6/30/2014 8889947 66 55 7/31/2014 p645252 77 66 8/31/2014 05eu6ab 88 77 9/30/2014 888e658 99 88
how prev month-end figures based on month-end dates in first column?
create formula @last day
, write below code last day of previous month:
dateserial(year({month-end }),month({month-end }),1)-1
now create 1 more formula @data
data of last day of previous month:
if ({month-end }=dateserial(year({month-end }),month({month-end }),1)-1) figure
place formula @data
@ column prev month-end figure
Comments
Post a Comment