<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List entry count by age class in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484707#M3496</link>
    <description>&lt;P&gt;I haven't done it, but perhaps you can make a statistic histogram with the statistic collector.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2017 09:57:14 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2017-12-28T09:57:14Z</dc:date>
    <item>
      <title>List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484705#M3494</link>
      <description>&lt;P&gt;Hi, currently I have a list that tracks the age dynamically. I wonder if I can track how many items are in my list based on their age class. For example I defined age class A: 0-10 days; B: 10-20 days, and so on &lt;/P&gt;
&lt;P&gt;I aware that normally we track the current status by using&lt;/P&gt;
&lt;PRE&gt;getstat(getactivity(current, "List"), "Content", STAT_CURRENT, current)	&lt;/PRE&gt;
&lt;P&gt;So I expect that there is an extension for addressing my problem. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 10:42:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484705#M3494</guid>
      <dc:creator>anggoro_p</dc:creator>
      <dc:date>2017-12-27T10:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484706#M3495</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/885/raja.s.html" nodeid="885"&gt;@Raja Sekaran&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 10:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484706#M3495</guid>
      <dc:creator>anggoro_p</dc:creator>
      <dc:date>2017-12-27T10:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484707#M3496</link>
      <description>&lt;P&gt;I haven't done it, but perhaps you can make a statistic histogram with the statistic collector.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 09:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484707#M3496</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2017-12-28T09:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484708#M3497</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/5716/anggorop.html" nodeid="5716"&gt;@Anggoro P&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not sure if there is any direct way to track the number of items in List based on their age, But you can track the number of items using Query in Pull from List as shown in the pic below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="10154-support-listentry1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1496506iEB946CC7FD729965/image-size/large?v=v2&amp;amp;px=999" role="button" title="10154-support-listentry1.png" alt="10154-support-listentry1.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="10155-support-listentry2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1496507i689E9688D06507E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="10155-support-listentry2.png" alt="10155-support-listentry2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then get the number of elements in an array using the length property. Check the labels associated with the token.&lt;/P&gt;&lt;P&gt;I have attached the sample model. I am not sure if this work for your situation.&lt;/P&gt;&lt;P&gt;&lt;A id="10157" href="https://answers.flexsim.com/storage/attachments/10157-listentrycount-support-6.fsm"&gt;listentrycount-support-6.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 14:03:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484708#M3497</guid>
      <dc:creator>raja_sekaran</dc:creator>
      <dc:date>2017-12-28T14:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484709#M3498</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://answers.flexsim.com/users/885/raja.s.html" nodeid="885"&gt;@Raja Sekaran&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Just to confirm. So, the idea is to use additional Pull From List activities to track age classes without actually pulling them from the list, isn't it? In other word, it would not affect my existing Pull From List activities for matching supply and demand right? &lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 07:35:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484709#M3498</guid>
      <dc:creator>anggoro_p</dc:creator>
      <dc:date>2018-01-02T07:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484710#M3499</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/5716/anggorop.html" nodeid="5716"&gt;@Anggoro P&lt;/A&gt; Yes, it won't affect your existing logic.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 07:48:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484710#M3499</guid>
      <dc:creator>raja_sekaran</dc:creator>
      <dc:date>2018-01-02T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484711#M3500</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/885/raja.s.html" nodeid="885"&gt;@Raja Sekaran&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Is there any query to get the number of items with the oldest age? &lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:42:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484711#M3500</guid>
      <dc:creator>anggoro_p</dc:creator>
      <dc:date>2018-01-08T15:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484712#M3501</link>
      <description>&lt;PRE&gt;ORDER BY age DESC 
// ASC ascending, DESC descending&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:27:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484712#M3501</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-01-08T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484713#M3502</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; unfortunately, what I intended was not making an order. &lt;/P&gt;
&lt;P&gt;I want to know how many items from my list that have oldest age. So, the output should be a number of tokens that have the oldest age on that particular time. &lt;/P&gt;
&lt;P&gt;I have tried this query, but I got an error message&lt;/P&gt;
&lt;PRE&gt;SELECT MAX(age)&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:33:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484713#M3502</guid>
      <dc:creator>anggoro_p</dc:creator>
      <dc:date>2018-01-08T19:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484714#M3503</link>
      <description>&lt;P&gt;You can pull the items from the list. They are assigned to the token label as an array. Then you get the number of items by the length of the array or token.pulled.length.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 00:59:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484714#M3503</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-01-09T00:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484715#M3504</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;That is indeed what &lt;A rel="user" href="https://answers.flexsim.com/users/885/raja.s.html" nodeid="885"&gt;@Raja Sekaran&lt;/A&gt; has suggested. In order to do that, I need a specific query to pull items based on criteria that I have explained before. I have used MAX() function, but it didn't work &lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 07:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484715#M3504</guid>
      <dc:creator>anggoro_p</dc:creator>
      <dc:date>2018-01-09T07:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484716#M3505</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;The MAX() function returns the largest value of the selected column.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://www.w3schools.com/sql/sql_min_max.asp" target="_blank"&gt;MIN (column name) and MAX( column name) from www.w3schools.com/sql/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The function does what it is intended for, not what you are assuming it does. If you want the oldest entries to be counted, you should try &lt;A rel="user" href="https://answers.flexsim.com/users/885/raja.s.html" nodeid="885"&gt;@Raja Sekaran&lt;/A&gt;'s advice.&lt;/P&gt;&lt;P&gt;Maybe you have to make a Table.query in source code to get the full functionality:&lt;/P&gt;&lt;PRE&gt;Table myEval = Table.query("SELECT .. FROM listname .. WHERE..");&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jan 2018 09:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484716#M3505</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-01-09T09:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: List entry count by age class</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484717#M3506</link>
      <description>&lt;P&gt;Attached is a model that creates from the list a table query and from this query it computes a class column inserted in new table. The class is a possible filter to get the items belonging to an age interval. &lt;A id="10300" href="https://answers.flexsim.com/storage/temp/10300-evallist.fsm"&gt;evallist.fsm&lt;/A&gt;  &lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:46:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-age-class/m-p/13484717#M3506</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2018-01-09T14:46:41Z</dc:date>
    </item>
  </channel>
</rss>

