Period examples

Property values @ Period in planning horizon:

Period Property default value for resource FY19 W27 FY19 W28 FY19 W29 FY19 W30 FY19 W31 FY19 W32 FY19 W33 FY19 W34
Property@Resource value 8 4 1 2 3 5 10 20 30

Horizon start = FY19 W27

Horizon end = FY 19 W34

Global period selector start = FY19 W30

Global period selector end = FY19 W33

The %periodcontextstart% parameter variable is replaced with 4, since FY19 W30 is the 4th period in the horizon.

The % periodcontextcount% parameter variable is replaced with 3, since FY19 W33 is the 3rd period AFTER the %periodcontextstart%.

Requirement Syntax Result
Sum up the first 2 periods in horizon *[#1]+1 5
Display 2nd period and subsequent 4 periods in horizon [#2]+4 1,2,3,5,10
Display the 1st, 3rd and 5th period in horizon [#1],[#3],[#5] 4,2,5
Sum up the 2nd period and subsequent 4 periods in horizon(total of 5 periods) *[#2]+4 21
Sum up the 2nd period and subsequent 4 periods in horizon (total of 5 periods) and display 2nd period and subsequent 4 periods in horizon *[#2]+4,[#2]+4 21,1,2,3,5,10
Sums up 2nd period in horizon *[#2] 1
Sums up the 1st period and subsequent 3 periods in horizon and then sums up the 5th period and subsequent 3 periods in horizon *[#1]+3,*[#5]+3 10,65
Sums up the 1st period and subsequent 3 periods in horizon and displays 1st period and subsequent 3 periods in horizon and then sums up the 5th period and subsequent 3 periods and displays 5th period and subsequent 3 periods in horizon *[#1]+3,[#1]+3,*[#5]+3,[#5]+3 10,4,1,2,3,65,5,10,20,30
Sum up all periods in the horizon * 75
Display default value [] 8
Display period FY19 W30 [FY19 W30] 3
Display period FY19 W30 and FY19 W32 [FY19 W30],[FY19 W32] 3,10
Display FY19 W30 and subsequent 2 periods [FY19 W30]+2 3,5,10
Sum up FY19 W30 and subsequent 2 periods *[FY19 W30]+2 18
Sum up FY19 W30 and subsequent 2 periods and display FY19 W30 and subsequent 2 periods *[FY19 W30]+2,[FY19 W30]+2 18,3,5,10
Sums up the FY19 W27 period and subsequent 3 periods and displays FY19 W27 period and subsequent 3 periods and then sums up the FY19 W31 period and subsequent 3 periods and displays the FY19 W31 period and subsequent 3 periods *[FY19 W27]+3,*[FY19 W31]+3 10,65
Sums up the FY19 W27 period and subsequent 3 periods and then sums up the FY19 W31 period and subsequent 3 periods *[FY19 W27]+3,[FY19 W27]+3,*[FY19 W31]+3,[FY19 W31]+3 10,4,1,2,3,65,5,10,20,30
Displays all periods defined in global period selector Empty parameter (not defined) 3,5,10,20

Sum up the periods in the global period selector

Where period selector is FY19 W30 to FY19 W33

*[#%periodcontextstart%] +%periodcontextcount% 38 (3+5+10+20)

Displays the first 3 periods in the global selector

Where period selector is FY19 W30 to FY19 W33

[#%periodcontextstart%]+2 3,5,10
Note: There must be no spaces between the variables used in the syntax. For example, *[FY19 W30]+2,[FY19 W30]+2.