Turnover time workstation calculation is coming wrong.
Hi Qlik Experts,
I am facing one issue in my turnover calculation
I am giving you one example like we have school there are several classrooms and different Teachers are there
we need to calculate each room turnover time each day i.e if it the first class in that room no need to calculate any turnover but it is the second class in the same room then need to calculate the Turnover for the same room how much time it will take to start the second class.
In the same way Teacher turnover time for each day i.e if it is first class for that teacher no need to calculate the TeacherTurnover time , if it is the second class for the same teacher need to calculate the Teacher turnover.
Hear are my calculations:
StudentTable:
Load
ClassDate,
ClassRoomID,
ClassRoomName,
SchedulStartTime,
SchedulEndTime,
ActuallyStartTime,
ActuallyEndTime
From [Student Table];
Load
If(Min(ActuallyStartTime)=$(minTime), Null(),
If (Previous(ClassRoomID)=ClassRoomID, If((SchedulStartTime) >= Previous(SchedulEndTime),