Hi Guys,
I am stumped on a duration report not sure why was wondering if I could get some help?
Here are my Formulas:
DateTimeVar StartTime;
IF {Reports_Events.Type}='Start'
Then StartTime:={Reports_Events.Timestamp};
StartTime
IF {Reports_Events.Type}='Stop'
Then DateDiff ('s',{@STartTime} ,{Reports_Events.Timestamp} );
I have tried to tie these 2 Start and Stop time together using the Report_Events.Key. The key is ran for every event and it is the same for the start and the stop time for each event.
Sample
Name Room TimeStamp Type Duration
PT Bleeding 5020 2/19/2013 7:11:01 AM Start 0
PT Bleeding 501MS 2/19/2013 1:42:16 PM Start 0
PT Bleeding 5020 2/19/2013 7:14:39 AM Stop -23,257.00
PT Bleeding 501MS 2/19/2013 1:43:54 PM Stop 98.00
The duration is in seconds and for some reason the -23,000 seconds is coming from the other start time and not the right one. Can anyone help?
Thanks,
Nick