Problem with formula in FIELD

B

Bart

Hi friends,

I have Project 2003, i have a field in ant table with the following formula:
(([Duración3]-[Duración1])/6)^ 2

But the value is wrong.
For example:
Duracion3=10 días
Duracion1=2 días
(([Duración3]-[Duración1])/6)^ 2=853,33 días

This Is strange, because the formula ([Duración3]-[Duración1])/6 display a
correct value of 1,33 días.

I have worked with
(([Duración3]-[Duración1])/6)*(([Duración3]-[Duración1])/6) and the result
value is the same wrong of 853,33 días.

Can Somebody to help me ?

THANKS....


---------------------------------------------------------------------

Hola a todos,

He definido un campo personalizado que incluye la siguiente fórmula:
(([Duración3]-[Duración1])/6)^ 2

Pero el valor que arroja es ILÓGICO o ERRADO, de hecho el valor se calcula
bien cuando la fórmula es sólo ([Duración3]-[Duración1])/6), pero al
pretender que eleve dicho valor a la potencia 2 genera el error.

Lo extraño es que si coloco la fórmula para que calcule el producto
(([Duración3]-[Duración1])/6) * (([Duración3]-[Duración1])/6) genera el mismo
valor errado de la fórmula anterior.

Los valores de entrada en una columna para dicho campo que estoy trabajando
son:
Duración3 = 10
Duración1 = 2

([Duración3]-[Duración1])/6 = 1,33 días

(([Duración3]-[Duración1])/6)^ 2 = 853,33 días

Alguien podría ayudarme ?

De antemano GRACIAS....
 
D

Dave

It is because you are multiplying two time intervals together. I am not
sure what the product of 10 minutes and 5 minutes actaully means in real
life as the calculation is undefined. The results probably depend on
the way that the dates are stored or represented internally.

In order to get the mathematics to execute the way that you expect, you
can use number fields in place of the duration fields.
 
B

Bart

Hi Dave, i understand that, you are right.

But, i did with a NUMBER FIELD (multipliying two Duration Time) and the
value result is 405800.

Really, i want to obtain the Variance of the Duration, Duration 3 and 1 are
Pesimist and Optimist, How can i to obtain this value using the Duration3 and
Duration1 field ?

THANKS...

B.S.

Dave said:
It is because you are multiplying two time intervals together. I am not
sure what the product of 10 minutes and 5 minutes actaully means in real
life as the calculation is undefined. The results probably depend on
the way that the dates are stored or represented internally.

In order to get the mathematics to execute the way that you expect, you
can use number fields in place of the duration fields.
Hi friends,

I have Project 2003, i have a field in ant table with the following formula:
(([Duración3]-[Duración1])/6)^ 2

But the value is wrong.
For example:
Duracion3=10 días
Duracion1=2 días
(([Duración3]-[Duración1])/6)^ 2=853,33 días

This Is strange, because the formula ([Duración3]-[Duración1])/6 display a
correct value of 1,33 días.

I have worked with
(([Duración3]-[Duración1])/6)*(([Duración3]-[Duración1])/6) and the result
value is the same wrong of 853,33 días.

Can Somebody to help me ?

THANKS....


---------------------------------------------------------------------

Hola a todos,

He definido un campo personalizado que incluye la siguiente fórmula:
(([Duración3]-[Duración1])/6)^ 2

Pero el valor que arroja es ILÓGICO o ERRADO, de hecho el valor se calcula
bien cuando la fórmula es sólo ([Duración3]-[Duración1])/6), pero al
pretender que eleve dicho valor a la potencia 2 genera el error.

Lo extraño es que si coloco la fórmula para que calcule el producto
(([Duración3]-[Duración1])/6) * (([Duración3]-[Duración1])/6) genera el mismo
valor errado de la fórmula anterior.

Los valores de entrada en una columna para dicho campo que estoy trabajando
son:
Duración3 = 10
Duración1 = 2

([Duración3]-[Duración1])/6 = 1,33 días

(([Duración3]-[Duración1])/6)^ 2 = 853,33 días

Alguien podría ayudarme ?

De antemano GRACIAS....
 
D

Dave

Sorry that my reply earlier was unhelpfully brief but I didn't have time
at that moment to add more.

The point is that durations are stored in minutes. If you set
number1=[duration1] you can see this (10 days of course is represented
by the number of working minutes in a working day rather than a calendar
day.

The variance figure you have is actually correct if the original units
were in minutes.

To get the answer you want you need to convert your durations (as
expressed in minutes) to days

[duration3]/(60 * 8) if you have an 8 hour day.

Then if you do the calculations on that basis, you will find you get the
correct answer.

number1]= (([duration3]-[duration]1)/(6*60*8))^2

will give the answer you desire.

Alternatively, your 405800/60/60/8/8 will give you the right answer
(insert the correct value for hours per day corresponding to your
organisation).

Dave
Hi Dave, i understand that, you are right.

But, i did with a NUMBER FIELD (multipliying two Duration Time) and the
value result is 405800.

Really, i want to obtain the Variance of the Duration, Duration 3 and 1 are
Pesimist and Optimist, How can i to obtain this value using the Duration3 and
Duration1 field ?

THANKS...

B.S.

:

It is because you are multiplying two time intervals together. I am not
sure what the product of 10 minutes and 5 minutes actaully means in real
life as the calculation is undefined. The results probably depend on
the way that the dates are stored or represented internally.

In order to get the mathematics to execute the way that you expect, you
can use number fields in place of the duration fields.
Hi friends,

I have Project 2003, i have a field in ant table with the following formula:
(([Duración3]-[Duración1])/6)^ 2

But the value is wrong.
For example:
Duracion3=10 días
Duracion1=2 días
(([Duración3]-[Duración1])/6)^ 2=853,33 días

This Is strange, because the formula ([Duración3]-[Duración1])/6 display a
correct value of 1,33 días.

I have worked with
(([Duración3]-[Duración1])/6)*(([Duración3]-[Duración1])/6) and the result
value is the same wrong of 853,33 días.

Can Somebody to help me ?

THANKS....


---------------------------------------------------------------------

Hola a todos,

He definido un campo personalizado que incluye la siguiente fórmula:
(([Duración3]-[Duración1])/6)^ 2

Pero el valor que arroja es ILÓGICO o ERRADO, de hecho el valor se calcula
bien cuando la fórmula es sólo ([Duración3]-[Duración1])/6), pero al
pretender que eleve dicho valor a la potencia 2 genera el error.

Lo extraño es que si coloco la fórmula para que calcule el producto
(([Duración3]-[Duración1])/6) * (([Duración3]-[Duración1])/6) genera el mismo
valor errado de la fórmula anterior.

Los valores de entrada en una columna para dicho campo que estoy trabajando
son:
Duración3 = 10
Duración1 = 2

([Duración3]-[Duración1])/6 = 1,33 días

(([Duración3]-[Duración1])/6)^ 2 = 853,33 días

Alguien podría ayudarme ?

De antemano GRACIAS....
 
B

Bart

Thanks Very Much Dave... all O.K.

Do you know any website or forum where can i to find any file of example
with a project... if is possible in spanish better.

Thanks...



Dave said:
Sorry that my reply earlier was unhelpfully brief but I didn't have time
at that moment to add more.

The point is that durations are stored in minutes. If you set
number1=[duration1] you can see this (10 days of course is represented
by the number of working minutes in a working day rather than a calendar
day.

The variance figure you have is actually correct if the original units
were in minutes.

To get the answer you want you need to convert your durations (as
expressed in minutes) to days

[duration3]/(60 * 8) if you have an 8 hour day.

Then if you do the calculations on that basis, you will find you get the
correct answer.

number1]= (([duration3]-[duration]1)/(6*60*8))^2

will give the answer you desire.

Alternatively, your 405800/60/60/8/8 will give you the right answer
(insert the correct value for hours per day corresponding to your
organisation).

Dave
Hi Dave, i understand that, you are right.

But, i did with a NUMBER FIELD (multipliying two Duration Time) and the
value result is 405800.

Really, i want to obtain the Variance of the Duration, Duration 3 and 1 are
Pesimist and Optimist, How can i to obtain this value using the Duration3 and
Duration1 field ?

THANKS...

B.S.

:

It is because you are multiplying two time intervals together. I am not
sure what the product of 10 minutes and 5 minutes actaully means in real
life as the calculation is undefined. The results probably depend on
the way that the dates are stored or represented internally.

In order to get the mathematics to execute the way that you expect, you
can use number fields in place of the duration fields.

Bart wrote:

Hi friends,

I have Project 2003, i have a field in ant table with the following formula:
(([Duración3]-[Duración1])/6)^ 2

But the value is wrong.
For example:
Duracion3=10 días
Duracion1=2 días
(([Duración3]-[Duración1])/6)^ 2=853,33 días

This Is strange, because the formula ([Duración3]-[Duración1])/6 display a
correct value of 1,33 días.

I have worked with
(([Duración3]-[Duración1])/6)*(([Duración3]-[Duración1])/6) and the result
value is the same wrong of 853,33 días.

Can Somebody to help me ?

THANKS....


---------------------------------------------------------------------

Hola a todos,

He definido un campo personalizado que incluye la siguiente fórmula:
(([Duración3]-[Duración1])/6)^ 2

Pero el valor que arroja es ILÓGICO o ERRADO, de hecho el valor se calcula
bien cuando la fórmula es sólo ([Duración3]-[Duración1])/6), pero al
pretender que eleve dicho valor a la potencia 2 genera el error.

Lo extraño es que si coloco la fórmula para que calcule el producto
(([Duración3]-[Duración1])/6) * (([Duración3]-[Duración1])/6) genera el mismo
valor errado de la fórmula anterior.

Los valores de entrada en una columna para dicho campo que estoy trabajando
son:
Duración3 = 10
Duración1 = 2

([Duración3]-[Duración1])/6 = 1,33 días

(([Duración3]-[Duración1])/6)^ 2 = 853,33 días

Alguien podría ayudarme ?

De antemano GRACIAS....
 
D

Dave

A quick search revealed

microsoft.public.es.project

I suspect it probably isn't as active as this site.
Thanks Very Much Dave... all O.K.

Do you know any website or forum where can i to find any file of example
with a project... if is possible in spanish better.

Thanks...



:

Sorry that my reply earlier was unhelpfully brief but I didn't have time
at that moment to add more.

The point is that durations are stored in minutes. If you set
number1=[duration1] you can see this (10 days of course is represented
by the number of working minutes in a working day rather than a calendar
day.

The variance figure you have is actually correct if the original units
were in minutes.

To get the answer you want you need to convert your durations (as
expressed in minutes) to days

[duration3]/(60 * 8) if you have an 8 hour day.

Then if you do the calculations on that basis, you will find you get the
correct answer.

number1]= (([duration3]-[duration]1)/(6*60*8))^2

will give the answer you desire.

Alternatively, your 405800/60/60/8/8 will give you the right answer
(insert the correct value for hours per day corresponding to your
organisation).

Dave
Hi Dave, i understand that, you are right.

But, i did with a NUMBER FIELD (multipliying two Duration Time) and the
value result is 405800.

Really, i want to obtain the Variance of the Duration, Duration 3 and 1 are
Pesimist and Optimist, How can i to obtain this value using the Duration3 and
Duration1 field ?

THANKS...

B.S.

:



It is because you are multiplying two time intervals together. I am not
sure what the product of 10 minutes and 5 minutes actaully means in real
life as the calculation is undefined. The results probably depend on
the way that the dates are stored or represented internally.

In order to get the mathematics to execute the way that you expect, you
can use number fields in place of the duration fields.

Bart wrote:


Hi friends,

I have Project 2003, i have a field in ant table with the following formula:
(([Duración3]-[Duración1])/6)^ 2

But the value is wrong.
For example:
Duracion3=10 días
Duracion1=2 días
(([Duración3]-[Duración1])/6)^ 2=853,33 días

This Is strange, because the formula ([Duración3]-[Duración1])/6 display a
correct value of 1,33 días.

I have worked with
(([Duración3]-[Duración1])/6)*(([Duración3]-[Duración1])/6) and the result
value is the same wrong of 853,33 días.

Can Somebody to help me ?

THANKS....


---------------------------------------------------------------------

Hola a todos,

He definido un campo personalizado que incluye la siguiente fórmula:
(([Duración3]-[Duración1])/6)^ 2

Pero el valor que arroja es ILÓGICO o ERRADO, de hecho el valor se calcula
bien cuando la fórmula es sólo ([Duración3]-[Duración1])/6), pero al
pretender que eleve dicho valor a la potencia 2 genera el error.

Lo extraño es que si coloco la fórmula para que calcule el producto
(([Duración3]-[Duración1])/6) * (([Duración3]-[Duración1])/6) genera el mismo
valor errado de la fórmula anterior.

Los valores de entrada en una columna para dicho campo que estoy trabajando
son:
Duración3 = 10
Duración1 = 2

([Duración3]-[Duración1])/6 = 1,33 días

(([Duración3]-[Duración1])/6)^ 2 = 853,33 días

Alguien podría ayudarme ?

De antemano GRACIAS....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top