Results accumulation
Posted: Fri Jul 07, 2006 7:06 pm
Hi,
Is there a predefined function in Vensim that accumulates the results of an auxiliary variable over time? Suppose I have an auxiliary variable called Net Sales. How do I accumulate Net Sales in an auxiliary variable Net Sales To-Date?
EX.
If Net Sales for 3 periods are $5, $10, and $20, then
Net Sales To-Date for the 3 periods should be $5, $15, and $35.
Also, how do you reset Net Sales To-Date? Let's say Net Sales is $7 in the period 4 and I want Net Sales To-Date to reset at the start of the quarter. So, instead of $42, Net Sales To-Date would be $7 in the 4th period of this scenario .
I would greatly appreciate any help that points me in the right direction.
Thanks, Ken
Is there a predefined function in Vensim that accumulates the results of an auxiliary variable over time? Suppose I have an auxiliary variable called Net Sales. How do I accumulate Net Sales in an auxiliary variable Net Sales To-Date?
EX.
If Net Sales for 3 periods are $5, $10, and $20, then
Net Sales To-Date for the 3 periods should be $5, $15, and $35.
Also, how do you reset Net Sales To-Date? Let's say Net Sales is $7 in the period 4 and I want Net Sales To-Date to reset at the start of the quarter. So, instead of $42, Net Sales To-Date would be $7 in the 4th period of this scenario .
I would greatly appreciate any help that points me in the right direction.
Thanks, Ken