Hi Stuart,
I do get accurate answers (mathematically) when I use:
IIf([Critical],(([Duration2]-[Duration1])/6)^2,0)
A couple of observations:
[duration2]-[duration1] in a *number* field would equal the number of
minutes between the two durations. So why divide by 6?
Dividing by 60 would give you the number of hours.
I guess I am a bit confused why you want to take a variance and then
square it?
If you are trying to calculate the number of days between the two
durations you will need to divide usually by 480 (60 minutes per hour
times 6 hours per day) if the formula is in a number field. If you are
using a number of hours per day less than 8, make sure both your calendar
(Tools>Change working time) reflects the different working hours as well
as the hours per day is set correctly in Tool>Options, Calendar tab. A
miss-match will cause unusual results.
Hope this helps. Let us know how you get along.
Julie
Stuart said:
Thanks
That helps
Also, if I use
IIF([critical], (([duration2]-[duration1])/6)^2,0)
to get the Variance, I get wierd answers. It works fine without the ^2
I also tried
IIF([critical],
(([duration2]-[duration1])/6)*(([duration2]-[duration1])/6),0)
That gives me the same wrong answer as ^2. There seems to be a problem
in
the ^ math Anybody seen or heard about that?
JulieS said:
Hi Stuart,
A couple of issues come to mind:
1) The formula should be:
IIF([critical], [duration2]-[duration1],0)
All field references should include the square brackets.
2) Have you populated data into the [Duration1] and [Duration2] tasks
for
the summary task or did you set the summary tasks to sum? (Customize
field
dialog box).
3) You mention the project rollup row - I assume you mean the project
summary task. Again, you will need to set the "Calculation for task and
group summary rows" to sum.
Hope this helps -- let us know how you get along.
Julie
I am trying to create a custom duration column to calculate the
variance of
a
critical path, but all of my attempts yield an error. I've tried the
following, and many variations.
IIF([critical],duration2-duration1,0)
duration2 and duration 1 are populated fields, and a "sum" in the
project
rollup row should be the value that I want.
Help me, please