@yearlen

Definition

Year Length

Returns

The number of days in the year, as defined in Defining, Deleting, and Displaying Time Periods.

Example

This formula returns the value of Sales (v1000) in annual periods:

@if(@isyear,v1000,v1000/@pdlen*@yearlen)  

In non-year periods, it annualizes Sales by dividing by the period length and multiplying by the number of days in the year.