question

Durga Ghosal avatar image
0 Likes"
Durga Ghosal asked Durga Ghosal commented

how to sum values of a label in a list by partition id

how to sum values of a label in a list by partition id or buy another label value.

process flowlist
· 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.

Joerg Vogel avatar image
3 Likes"
Joerg Vogel answered Durga Ghosal commented

In fact it is a Table.query you are looking for.

  1. double sumlabel = Table.query("SELECT SUM(label2) FROM List1.2")[1][1];
  2. print(sumlabel);

List1 looks like this picture:

The value of variable sumlabel is 40.

Please look into the manual howto get a reference of a partition of a list :

Reference Developer and Advanced User Reference SQL Queries Chapter: Table Selection blue box: Quering Global Lists


· 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.

tannerp avatar image
0 Likes"
tannerp answered tannerp commented

You could try using the information found in this part of the FlexSim User Manual:

This could be applied to a dashboard or other function so you can read the value.


list-entries.png (22.9 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.