The closing balance of a 1 year old sheep becomes the opening balance of 2 year old sheep the following year. The closing balance of 2 year old sheep becomes the opening balance of 3 year old sheep the following year. And so on.
Best answer by Jérémie
Hi Angus, you will need to add a “Number” property in the Year dimension, to be able to offset by a combination of Year and ‘Year Old’ dimensions.
This works because Pigment can offset dimensions items using integers, and that’s a very powerful thing. For example if you type Month-1 in the formula playground, it gives you the previous Month.
Here we use the same idea, offsetting the ‘Year Old’ (sheep age) dimension by the opposite of the Year number, and then use this as our mapping in the BY.
This works because Pigment can offset dimensions items using integers, and that’s a very powerful thing. For example if you type Month-1 in the formula playground, it gives you the previous Month.
Here we use the same idea, offsetting the ‘Year Old’ (sheep age) dimension by the opposite of the Year number, and then use this as our mapping in the BY.