Hello,
I would like to calculate the last three months based on available data set, my data set are below;
Product Date Price A 11/28/2014 114.5 09/11/2014 114.5 10/22/2012 58.21 11/14/2011 71.91 12/08/2010 71.91 01/13/2010 74.38 B 12/23/2014 14.51 01/24/2014 14.89 C 09/23/2014 84.17 04/29/2014 84.17 08/14/2012 77.85 05/15/2007 60.5 06/25/2005 76.73 05/25/2004 0
So in this example i want to calculate the last three month average price per product, but the problem for me is sometimes i have only two dates available like example B that time i want to average based on two dates only.
Kindly help me in finding out the average for the data set.