how to sum values of a label in a list by partition id or buy another label value.
how to sum values of a label in a list by partition id or buy another label value.
It sounds a bit like you are looking for a "Batch" Activity instead of a List. But maybe you can explain more exactly what you are trying to do (e.g. with a small example model)? So we can figure out how to help you!?
@sebastian.hemmann, I am using list as my inventory/storage, I want to check how much I have in my inventory for each SKU before giving production request, so that I can prioritize the one with low inventory and ignore/delay the one with high inventory. I would just like to check the value and not release anything.
In fact it is a Table.query you are looking for.
double sumlabel = Table.query("SELECT SUM(label2) FROM List1.2")[1][1]; 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
Thank you, worked like a charm. I deleted the partition Id and did "group by" in the query statement and it made it even more easy to use.
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.
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved