question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked Ben Wilson commented

push token label into list and the list should show cumulative

As shown in below image

I am pushing token label into the list. Instead of different field entries for each value. Is that possible to have single cumulative value.

For example Instead of field values as 1 1 1 3 2 can I make the list to add itself and show total sum as 8.

Attaching the model for reference

list.fsm


FlexSim 20.1.3
flexsim 20.1.3list
1596970030255.png (65.6 KiB)
list.fsm (33.0 KiB)
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @sudheer.r, was matt.long's or jeff.nordgren's answer helpful? If so, please click the red "Accept" button on one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered

@sudheer.r,

I'm not sure I understand what you are trying to do. Lists are used mainly to keep track of items. They may be flowitems, fixed resources, transporters, etc. but not necessarily to track running totals. Are you sure that you don't need a Global Table? That would be an easier way of keeping track of runnings totals. And when you go to pull something off of your running total list, what exactly would you pull? And if you just want a straight count, like it seems you are asking, then I would even use just a Global Variable to keep track of a running total.

Thanks.

5 |100000

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

Matt Long avatar image
0 Likes"
Matt Long answered

Actually I'd use either a Tracked Variable or a Statistics Collector. Then you can plot the data on a dashboard.

5 |100000

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