Hi,
I need to calculate the standard deviation for the number of tasks completed each week.
I have a table consisting of task id and date completed, so the following gives me the number of taskscompleted each week:
I then need to get the standard deviation for each week. I've tried using STDEV() but I get null for every row.
I've replicated this in Excel and I get the correct figure.
Can this be done?
Thanks,
I need to calculate the standard deviation for the number of tasks completed each week.
I have a table consisting of task id and date completed, so the following gives me the number of taskscompleted each week:
Code:
SELECT DATEPART(wk,DateCompleted) AS WeekNum
, COUNT(TaskID) AS NumTasks
FROM Tasks
GROUP BY DATEPART(wk,DateCompleted)
I then need to get the standard deviation for each week. I've tried using STDEV() but I get null for every row.
I've replicated this in Excel and I get the correct figure.
Can this be done?
Thanks,