Now the question is in 6th expression where i need to calculate in else part instead of 0, the calculation is based on my previous week calculation in this expression itself.
Eg:
for week 1 i an using the value of initialStock which is present in my database but for week 2 my initialStock will be replaced by the Calculated value for week 1,
Similarly week 3 will use the value of week 2 in calculation... and goes on.
How can i pick the previous weeks value for next week where my expression for calculation is same for every week.