Jump to content

sum group


celamar

Recommended Posts

It forgives my English, I am brazileira...

As to add the values in groups?

Code:

Father 1 --------
Son 1 --------
Grandson 1 -------- 5,00
Grandson 2 -------- 5,00
Grandson 3 -------- 5,00

Son 2 --------
Grandson 1 -------- 1,00
Grandson 2 -------- 1,00
Grandson 3 -------- 1,00

 

I want to add the values above that it is in the following way:

 

Code:
[code]Father 1 -------- 18,00
Son 1 -------- 15,00
Grandson 1 -------- 5,00
Grandson 2 -------- 5,00
Grandson 3 -------- 5,00

Son 2 -------- 3,00
Grandson 1 -------- 1,00
Grandson 2 -------- 1,00
Grandson 3 -------- 1,00

 

sql are grouped by father and son and have only the value of the grandson

 

thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It is possible to create a Sum in the group footer -> create a new Variable(view->variables->new and use Sum as calculation type).

 

As fas as I know you can only use this sum variable in the group footer(but perhaps there is a way to get a sum in the header...).

Link to comment
Share on other sites

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...