question

Vinayak N2 avatar image
0 Likes"
Vinayak N2 asked Vinayak N2 commented

How to display a chart for max backorder content per week?

Hi,
I have an example of a list here where I want to display what will be the maximum backorder created aggregated per week number. Is there any way to do this?

test_list_3.fsm


1625611956086.png


FlexSim 21.1.4
dashboardslists
1625611956086.png (248.9 KiB)
test-list-3.fsm (33.2 KiB)
· 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.

Eric M avatar image Eric M commented ·

Hi @Vinayak N2, was my answer helpful? If so, please click the red "Accept" button at the bottom of the answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Vinayak N2 avatar image Vinayak N2 Eric M commented ·
Hi Eric, sorry for the late reply. I did not get a chance to completely test out the solution. I'll update you over the weekend. Thank you for your time.
1 Like 1 ·

1 Answer

·
Eric M avatar image
1 Like"
Eric M answered

Hi @Vinayak N2, I added a column in the Stats Collector called "Week" that records the current week and then use a partition in a calculated table to determine the maximum content for each week. I also charted the results in the dashboard.

I used some code to calculate what week the model is in when the content changes (always 7 days from the start day, so in your case, updated every Tuesday). I start by finding the day. I use the command Model.dateTime.totalDays and record the initial value in a global variable that is set using a Model trigger on reset. That way, no matter what you change your start time / day to be, it will be updated in the logic. The current day is then calculated by finding the difference between the current day and starting day (rounding down) and the week is calculated by dividing the total days by 7 (rounding down).

Let me know if you have any questions. You can look at the table generated by the Stats Collector to see what's being recorded.

test-list-3_1.fsm


test-list-3-1.fsm (35.8 KiB)
5 |100000

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

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.