Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Data Functions

GET DATA MAX(datavar,start,end) GET the MAXimum value of DATA over a time range

Scroll Prev Top Next More

Returns the maximum value that a Data variable takes one over a time range.  If there is no data in the time range, or the variable is not 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 MAX(units,time,time) --> units

Example

Max Sales in Data = INITIAL(
GET DATA MAX(sales data,Initial Time, Final Time))

Availability: Not PLE or PLE Plus.

See also: Data Equations, :NA:

Sample model: GET DATA stats.mdl in FunctionExamples