VBugDenver
Technical User
I reveived the very valuable information below for LBass. It work perfectly. But after looking at the data, it calculates all hours in in a week. Now I am getting into an area that I am less familiar. My question; is there a way to eliminate weekend hours and only calculate the hours Monday thru Friday and display the data as day:hours? example: 3 days, 5 hours in any format.
lbass (TechnicalUser) 3 Mar 11 13:05
If you want to display the results in a group footer, you can use formulas like this:
//{@treatment}
if {Schedule.Activity} = "Treatment" then
{Schedule App_DtTm}
//{@simulation}:
if {Schedule.Activity} = "Simulation" then
{Schedule App_DtTm}
Make sure the case of the result matches what is in the field. Then create a third formula:
datediff("d",maximum({@treatment},{table.groupfield}),maximum({@simulation},{table.groupfield}))
Not sure what interval you want use "s" for seconds, "n" for minutes, "h" for hours.
This assumes there is only one treatment and one simulation per group.
-LB
lbass (TechnicalUser) 3 Mar 11 13:05
If you want to display the results in a group footer, you can use formulas like this:
//{@treatment}
if {Schedule.Activity} = "Treatment" then
{Schedule App_DtTm}
//{@simulation}:
if {Schedule.Activity} = "Simulation" then
{Schedule App_DtTm}
Make sure the case of the result matches what is in the field. Then create a third formula:
datediff("d",maximum({@treatment},{table.groupfield}),maximum({@simulation},{table.groupfield}))
Not sure what interval you want use "s" for seconds, "n" for minutes, "h" for hours.
This assumes there is only one treatment and one simulation per group.
-LB