<?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: Get last entry from StatisticsCollector table in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13747483#M97403</link>
    <description>&lt;P&gt;Thank you, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17286793"&gt;@FelixMoehlmann&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I had tried the single row statistics collector before, but I had the columns "Update Timing" property configured to "When the value is assessed". That was causing an error and the table was populated with null, even using the "Event Value" field configured. Changing the "Update Timing" to "When the row is added and/or updated by events" allowed me to connect the columns to the events and it worked as expected.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 03:38:02 GMT</pubDate>
    <dc:creator>guiroehe</dc:creator>
    <dc:date>2025-07-31T03:38:02Z</dc:date>
    <item>
      <title>Get last entry from StatisticsCollector table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13737689#M97291</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wonder if there is a way to make a CalculatedTable subset only the last entry on from a StatisticsCollector table.&lt;/P&gt;&lt;P&gt;Apparently, LAST is not a valid command in FlexSim's SQL engine.&lt;/P&gt;&lt;P&gt;If that is not possible, how one can create a repeating event that updates a single row on a statistics collector?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 04:24:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13737689#M97291</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-07-24T04:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get last entry from StatisticsCollector table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13737783#M97294</link>
      <description>&lt;P&gt;You get Number of Rows by clause COUNT or last entry by ORDER BY of index or time? If a language interface does not support a function, then you can still try to get to similar result on a longer way. More interesting is a question is there event that occurs if a new entry increases number of rows in a table. Otherwise you check if a &amp;nbsp;event happens that will update a calculated table. Or as you suggested you &lt;A href="https://docs.flexsim.com/en/25.2/Reference/Tools/CalculatedTable/CalculatedTable.html#calculations" target="_blank" rel="noopener"&gt;update a calculated&lt;/A&gt; table upon a time interval.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 06:18:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13737783#M97294</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2025-07-24T06:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get last entry from StatisticsCollector table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13737961#M97300</link>
      <description>&lt;P&gt;You can use "SELECT LAST_VALUE(columnName) FROM tableName" or "SELECT columnName FROM tableName ORDER BY ROW_NUMBER DESC LIMIT 1".&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/24.2/Reference/DeveloperAdvancedUser/SQLQueries/SQLQueries.html#language" target="_blank"&gt;https://docs.flexsim.com/en/24.2/Reference/DeveloperAdvancedUser/SQLQueries/SQLQueries.html#language&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To update a single row in a Statistics Collector, always use the same row value for each event and don't finish the row. In the columns tab set all events to update the eligible columns and make sure that those columns use the "Event Value" field for the data rather than the "Row Add Value".&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 09:00:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13737961#M97300</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2025-07-24T09:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get last entry from StatisticsCollector table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13747483#M97403</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17286793"&gt;@FelixMoehlmann&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I had tried the single row statistics collector before, but I had the columns "Update Timing" property configured to "When the value is assessed". That was causing an error and the table was populated with null, even using the "Event Value" field configured. Changing the "Update Timing" to "When the row is added and/or updated by events" allowed me to connect the columns to the events and it worked as expected.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 03:38:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/get-last-entry-from-statisticscollector-table/m-p/13747483#M97403</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2025-07-31T03:38:02Z</dc:date>
    </item>
  </channel>
</rss>

