Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7790

How can i get this summation right?

$
0
0

Hi experts,

 

who can help me out with this task...

 

I have a sub report that has a group by week.

Each week contains totals from deliveries, production, demand and at the end of each week is a calculated stock level (running total).

Deliveries and production increases the stock level while the demand reduces the stock level.

 

It looks a bit like this;

 

Week     Delivery     Production     Demand     Stock level

1                                                                                5

2                    2                   2               5                    4

3                    1                   1               3                    3

4                    2                                    1                    4

 

Now what I am looking for is this;

I want to calculate the stock level in week 3 with deduction of the totals from delivery and production from week 2.

Instead of the totals from week 2.  

I dont want the demand calculation be changed it must be deducted from the from the stock level in the same week the demand is. 

 

So then you get this;

 

Week     Delivery     Production     Demand     Stock level

1                                                                                 5

2                  2                    2                  5                   0

3                  1                    1                  3                   1

4                  2                                        1                   2

 

Who can help me with the right formula to get this done.

 

Thank you in advance,

 

BR

Pokey!


Viewing all articles
Browse latest Browse all 7790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>