cancel
Showing results for 
Search instead for 
Did you mean: 

Time between Closed and Start in Sequence of events.

0 Kudos

My specific issue is in regards to time between different events. My Example of data:

Date | User |Ticket |Seq | Start | Closed Hour

01/01/2018| AB1234| 1234216| Seq 1| 08:00| 12:01

01/01/2018| AB1234|1328903| Seq 2|12:11|13:00

01/01/2018| AB1234|1762349| Seq 3| 13:03|14:05

01/01/2018| AB1234|1674365| Seq 4| 14:05|16:00

I need to get the time difference between the CLOSED HOUR of each Ticket and the Start Hour of next ticket in Sequence. I have tried different ways but no success. Any expert help would be appreciated.

denis_konovalov
Active Contributor
0 Kudos

I have fixed your tags. Since you haven't specified product(s) you are using and assuming you are using reporting in SAP Business Intelligence platform, I set tags to the most likely areas.

Next time, please be more descriptive and select tags more carefuly.

Accepted Solutions (0)

Answers (5)

Answers (5)

wobi
Participant
0 Kudos

I have it in BO 4.2.4

- Wobi

Syntax

int TimeBetween(first_date;last_date;period)			

0 Kudos

I only have 4.1 sir. I appreciate the response and hope there is an answer for 4.1.

0 Kudos

Any expert out there able to tackle this?

0 Kudos

In SQl this case statement was able to work: ,case when seq = 1 then null else lag(Closed Hour) over (order by [Date], user, seq) end as [Time_Between]

I do not know how to recreate this in Business Objects 4.

0 Kudos

I am in Business Objects 4. I do not have a TimeBetween function available nor a MinutePeriod.

ayman_salem
Active Contributor
0 Kudos

use following formula:

=TimeBetween(Previous([Closed Hour];([User])); [Start]; MinutePeriod)

This calculates the time between tickets in "min" for each "user".

..

it is better to use a combined "date and time" in the formula (the "start" of the ticket is on another day of "closing" the previous ticket)