question

Lenny C avatar image
0 Likes"
Lenny C asked Jeanette F commented

Dashboard not showing statistics

Hi, im trying to track the staytime of a patient in various waiting areas in sub process flows by using Zones. Even though the zone has statistics, they are not displayed on the dashboard, as seen below. May I know how I can go about fixing this? Thank you!

FlexSim 20.1.3
flexsim 20.1.3dashboard display
1623124276182.png (81.8 KiB)
· 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.

David Chan avatar image David Chan commented ·

You might want to attach the model that has the problem. There could be a few instance over here. so it could be there is no data for this instance.

0 Likes 0 ·
Lenny C avatar image Lenny C commented ·

Hi @David Chan, please find the attached model with the above-mentioned problems. Thank you!

Small_Model.fsm

0 Likes 0 ·
small-model.fsm (350.9 KiB)
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Lenny C, was Jordan Johnson's answer helpful? If so, please click the red "Accept" button at the bottom of their 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 ·

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jordan Johnson edited

Here is a little about what's going on. You have two subflows (Acute and Chronic), and it looks like you're trying to get stats on both of those. Unfortunately, stats collectors made by the pin buttons don't really work on activites in subflows. The pin buttons need to be updated, which is a current issue on the dev list.

The pin buttons work by creating a stats collector in your model, in the toolbox, and then creating a chart that draws the data in that stats collector. To fix your issue, you need to fix the stats collectors, so that they make a table, which will make the charts draw correctly.

Some of the stats collectors create tables that show the min, max and average of the staytime. To fix those stats collectors, double-click on them in the toolbox, and delete the Enumerate event. Use the sampler to sample the Zone and choose On Exit. Then, for the row value, use this code:

data.enumerate(data.activity, data.instance, data.group)

The event configuration should look like this:

1623774506998.png

Other stats collectors are supposed to draw a time plot of staytime vs time. It looks like there is a bug in those. However, the steps to fix them are pretty much them same. You'll need to delete the first event, and then re-sample the zone, and choose On Staytime Change, and set the new value's label name to Staytime. The configuration should look like this:

1623774824380.png

I tried this change on the first two stats collectors in the list and it worked. Note that the charts will be empty until the model generates some data, so you'll need to run until tokens move through those flows.


waitforstaytime.png (83.3 KiB)
1623774824380.png (89.2 KiB)
1623774506998.png (85.9 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.