Edit

NumToPeriod (PeriodIndex)

Result Type: Period

Definition: Returns the internal period number of the period indexed by PeriodIndex. The first period has a period index of 1 (but will have a period number based on y*100+p, where y is the number of the financial year in MoneyWorks, and p is the number of the period in that year, with the first period being 1.

Examples:  NumToPeriod(1)

Returns the first available period.

NumToPeriod(periodtonum(currentper)-3)

Returns the period number of the period 3 periods before the current period. This is equivalent to PeriodOffset(CurrentPer, -3)