Jump to content

Sum of previous 2 rows


atmaling

Recommended Posts

Hi,

I want to take sum of previous 2 rows and display it in 3rd row as below:
Consider my query has three fields as Shop, Item and Stock as below, I want to take sum of stock and display it in 3rd row.

Shop | Item | Stock

Shop1 | Item1 | 10
Shop2 | Item1 | 20
Total | Item1 | 30
Shop1 | Item2 | 15
Shop2 | Item2 | 25
Total | Item2 | 40

How it's possible using scriptlets? or any other way ?

As I couldn't find much more help on scriptlets on any site. 

Please help me...

Thanks in Advance...!!!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...