Your sample code does not run for me. I am missing some series such that the following line gives an error
In any case, in your code you also have
Did you mean to add the '-1'. If you remove it I believe it will fix the problem
Code:
group {%mygroup} {%index} {%i}_2_0m -{%i}_2_0m ({%i}_2_0m -{%i}_2_0m)
In any case, in your code you also have
Code:
series {%index} = {%trend}-@first({%trend})-1
Did you mean to add the '-1'. If you remove it I believe it will fix the problem