Print Thread
How make sum on groups of the report
#32316 07/01/03 06:38 PM
Joined: Jul 2003
Posts: 7
V
vovidiu Offline OP
Member
OP Offline
Member
V
Joined: Jul 2003
Posts: 7
Hello,

How I can make sum (totals) on the all groups of the report.

Thanks,
Ovidiu

Re: How make sum on groups of the report
#32317 07/01/03 09:52 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
Let us assume you have the following query:

select deptno, job, ename, sal from emp
order by deptno, ename

You want to have a break for each department (deptno) and for each job within this department. You also want to show the total salary (sal) for each department and job.

On the layout tab page you can define a "Break" for the deptno and sal columns. For the sal column you can define a "Sum per Break" to display the sum of the salaries for each job and for each department.

You can also define a "Sum per Break & Report" to additionally show the total sum of the salaries for the entire report.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: How make sum on groups of the report
#32318 07/02/03 08:47 PM
Joined: Jul 2003
Posts: 7
V
vovidiu Offline OP
Member
OP Offline
Member
V
Joined: Jul 2003
Posts: 7
Thanks.

It works.

Ovidiu

[quote]Originally posted by mkalter:
Let us assume you have the following query:

select deptno, job, ename, sal from emp
order by deptno, ename

You want to have a break for each department (deptno) and for each job within this department. You also want to show the total salary (sal) for each department and job.

On the layout tab page you can define a "Break" for the deptno and sal columns. For the sal column you can define a "Sum per Break" to display the sum of the salaries for each job and for each department.

You can also define a "Sum per Break & Report" to additionally show the total sum of the salaries for the entire report.

[/quote]


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.081s Queries: 13 (0.035s) Memory: 2.5005 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-05-06 04:51:47 UTC
Valid HTML 5 and Valid CSS