question

Haneen A avatar image
0 Likes"
Haneen A asked Jason Lightfoot edited

Calculating staytime using zones

hello,

we are trying to calculate the delivery time for each luggage group, each group is defined by the luggage cluster. we want the time to start when the first luggage of each group enters the model and ends when the last luggage of each group is pulled off of the conveyor.

As shown in the picture the group number should have only the groups (1,2,3) and to have only one row for each group. Finally the total time for each of these groups

what would you recommend us to do dear Mr. @jason.lightfoot ?

thank you

Finaal.fsm

FlexSim 20.2.0
processflowdashboardsflexsim 20.2.0zonestaytime
capture.png (24.2 KiB)
finaal.fsm (4.5 MiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

In a calculated table you can set this up easily by using this SQL:

  1. SELECT
  2.     [Group Number], AVG([Time]) AS [AverageDeliveryTime], MIN([Time]) AS [min] , MAX([Time]) AS [max], SUM([Time]) AS [Total], Count(*) AS [Qty]
  3. FROM [TotalPassengerWaitTimes] GROUP BY [Group Number]



1614006559075.png (17.5 KiB)
1614006949060.png (19.0 KiB)
· 8
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.