Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ieuyar
Contributor III
Contributor III

Date-Time Shifts Trouble

Hi all,

In my qlikview project of OEE, i'm trying to calculate stopping minutes per machine over dates and shifts.

I divide a day into 3 parts, 00-08, 08-16, 16-24 shifts. So, one shift is 8 hours.

I'm trying to get net working minutes. there may be such data that stopping is 1180 minutes. So, it is bigger than a shift which is 480 minutes.

In the data, it is on 1 row but I should divide it into shifts.

For example assume that stopping time is 12.02.2018 05:00 and stoppage is 1180 minutes.

I show it this  way:

      

MachineDateShiftWorking Time(min)Stoppage (min)Net Working Time
AAA12.02.201800-084801180-700

Customer desires to show the same data in this way:

     

MachineDateShiftWorking Time(min)Stoppage (min)Net Working Time
AAA12.02.201800-08480180300
AAA12.02.201808-164804800
AAA12.02.201816-244804800
AAA13.02.201800-0848040440

Could you please suggest me a solution how to achieve it?

Thanks,

2 Replies
Gysbert_Wassenaar

Perhaps this discussion helps: Task/Ticket Duration

Or this one: Calculate hours between two Date/Time strings

Or Expression with Working Days and working Hours


talk is cheap, supply exceeds demand
ieuyar
Contributor III
Contributor III
Author

Thanks a lot. I have implemented below solution according to my requirements.

Calculate hours between two Date/Time strings