DateDiff totals
Posted: Tue Feb 07, 2017 5:18 pm
I have correctly calculated the DateDiff for my DataBand, of which the result lists 109 work orders, using this formula:
{DateDiff(WorkOrders.EndDate,WorkOrders.BeginDate)}
The result is formatted as time and is returned in hours, which is correct. When I format it as a number, it returns blank.
I'd now like to add up all those totals in my header band and divide that total by 10 (which would equal our number of work days). I'm new to this, getting some help from our vendor, but we're stuck here. I've tried this, formatted as time:
{SumTime(DataBand,DateDiff(WorkOrders.EndDate,WorkOrders.BeginDate))}
but the value returned is 8:00 AM, which isn't right.
I'd prefer the total be formatted as a number (total # of hours / 10)
So, I tried this, also formatted as time, the result is 0
{Sum(DataBand,DateDiff(WorkOrders.EndDate,WorkOrders.BeginDate))}
When I format it as a number, the return is 0.00
{DateDiff(WorkOrders.EndDate,WorkOrders.BeginDate)}
The result is formatted as time and is returned in hours, which is correct. When I format it as a number, it returns blank.
I'd now like to add up all those totals in my header band and divide that total by 10 (which would equal our number of work days). I'm new to this, getting some help from our vendor, but we're stuck here. I've tried this, formatted as time:
{SumTime(DataBand,DateDiff(WorkOrders.EndDate,WorkOrders.BeginDate))}
but the value returned is 8:00 AM, which isn't right.
I'd prefer the total be formatted as a number (total # of hours / 10)
So, I tried this, also formatted as time, the result is 0
{Sum(DataBand,DateDiff(WorkOrders.EndDate,WorkOrders.BeginDate))}
When I format it as a number, the return is 0.00