@islasthist

Definition

Is the last historical period

A relative reference in @if statements.

Forecast periods are determined by the historical/forecast boundary set in Defining, Deleting, and Displaying Time Periods.

Returns

Example

If a model contains 6 years starting in 2005, with 2006 as the last historical period, then the 2007–2010 are forecast. This formula:

@if(@islasthist, 1, 2)

return 1 in 2006, and 2 in all other years.