Thanks for your help so far. I tailored your code into the following:
Option Compare Database
SELECT Item Number, StDev(Val)
FROM tbl_UsageandFcst INNER JOIN
(SELECT Item Number, min(Date) AS Start_Date
FROM tbl_UsageandFcst
WHERE Value > 0...
I have a table with the following 3 fields: Item#, Date (year-Month), Units sold
For each item there are 24 months of data. I need to find the first data in the data set where the value is greater than 0 & calculate the standard deviation for the range consisting of that month plus the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.