Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Data Functions

GET DATA FIRST TIME(datavar) GET the FIRST TIME data exists

Scroll Prev Top Next More

Returns the time at which the first 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  GET DATA FIRST TIME is relatively slow and is best used inside of INITIAL equations.

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

Example

first sales data time = INITIAL(GET DATA FIRST TIME(sales data))

Availability: Not PLE or PLE Plus.

See also: Data Equations, :NA:

Sample model: GET DATA stats.mdl in FunctionExamples