Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Data Functions

GET DATA TOTAL POINTS(datavar) GET the TOTAL number of POINTS in a DATA series

Scroll Prev Top Next More

Returns the total number of points for the data variable datavar.  If datavar is not actually a data variable then :NA: is returned.

NOTE  GET DATA TOTAL POINTS is relatively slow and is best used inside of INITIAL equations.

Units: GET DATA TOTAL POINTS(units) --> dmnl

Example

sales data points = INITIAL(GET DATA TOTAL POINTS(sales data))

Availability: Not PLE or PLE Plus

See also: Data Equations, :NA:

Sample model: GET DATA stats.mdl in FunctionExamples