question

Jacob E2 avatar image
0 Likes"
Jacob E2 asked Ryan Clark commented

Adding Daily Input of Multiple Queues While Excluding Previous Day's Inputs

Hello,

I created a statistics collector to track the inputs of Queue 1 through Queue 4, and then added each of the Queue's inputs together to get the total daily production. Day 1 does exactly what I want it to do. But then on Day 2, instead of giving me the daily production totals for Day 2, I get a running total of Day 1 and Day 2. Day 3 includes Day 1,2, & 3 inputs and so on.

How can I track multiple days inputs without including the previous day's inputs?statistics-collector-table.png

Adding Daily Inputs of Multiple Queues.fsm

FlexSim 21.0.6
statistics collectorstatistics
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

·
Ryan Clark avatar image
1 Like"
Ryan Clark answered Ryan Clark commented

Hi @Jacob E2,

Please see the attached modified version of your model. I altered the code for each column in your Statistics Collector to take the total input (which is cumulative) and subtract all of the values in the previous rows. This gives the result that you were looking for.

I hope this helps! Let us know if you have further questions.

adding-daily-inputs-of-multiple-queues-rc.fsm


· 2
5 |100000

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

Jacob E2 avatar image Jacob E2 commented ·

Perfect! Thank you for your help!

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Jacob E2 commented ·
You're welcome!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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