Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Data Functions

GET DATA LAST TIME(datavar) GET the LAST TIME DATA exists

Scroll Prev Top Next More

Returns the time at which the last data point occurs for the data variable datavar.  If there is no data for datavar or it is not actually a data variable then :NA: is returned.

NOTE  The GET DATA … functions are relatively slow and best used inside of INITIAL equations.

Units: GET DATA LAST TIME(units) --> time units

Example

last sales data time = INITIAL(GET DATA LAST TIME(sales data))

Availability: Not PLE or PLE Plus.

See also: Data Equations, :NA:

Sample model: GET DATA stats.mdl in FunctionExamples