I currently have a report that you enter the month and year to run PO usage history and it looks back at the past 12 months and then gives you an average monthly usage, I now have to add to that same report a three month usage average and I'm having trouble getting it to work correctly.
On the report select expert the formula I'm using is listed below.
datediff('m',{ORDER.PO_DATE},date({?Year},{?Month Number},1)) in 0 to 11
In the 12 month average use formula I have 'Sum ({PO.REC_QTY}, {PO.ITEM})/12'
and I created another formula field for the 3 month average which is 'if datediff('m',{ORDER.PO_DATE},date({?Year},{?Month Number},1)) in 0 to 2 then Sum ({PO.REC_QTY}, {PO.ITEM})/3'
Though it is still giving me the 12 month total instead of the 3 month total I want.
Any thoughts or help would be appreciated.
Thank You