question

Jon Abbott avatar image
1 Like"
Jon Abbott asked Jason Lightfoot commented

How to calculate durations in Milestone Collector?

I would like to add a column in a Milestone Collector that calculates the duration between the Start and Finish times, which are in separate columns. Please let me know what I should try to use in the Value field. Thanks in advance for your help.

FlexSim 20.0.3
milestone collectormilestonesduration
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

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Jason Lightfoot commented

Hi John,

If you can live with the duration column in a different table, you could use a Calculated Table to subtract the two columns. That has the advantage of using SQL to aggregate/filter/group etc.

Another option would be to use a second statistics collector to listen to the first collector. You can set it up so that when the milestone collector writes the second milestone time, you can calculate the difference between the first and second milestone times, and record that in a table. That has the advantage of having a table built incrementally, instead of all at once like a calculated table. If I had to guess, I'd say that this is the option for you, even though it will create a second table.

If you want the same table to have both time stamps and durations, then you'll need to create your own statistics collector. A milestone collector is a statistics collector with a strict/specific UI. There is no functional difference between the two.

· 3
5 |100000

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

Jon Abbott avatar image Jon Abbott commented ·

Thanks @jordan.johnson. I used calculated tables for this and got what I needed. Being able to directly write the SQL code helps.

0 Likes 0 ·
andresantos avatar image andresantos commented ·
Hi, I'm having trouble creating a calculated table / statistics collector that listens to my milestones. Any help??

Thanks

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ andresantos commented ·
Please post a new question explaining your problem with an attached model.
0 Likes 0 ·