simonfisher
Programmer
I need to determine the Sum of groups of records and for each group use the Sum to determine the Average for the group.
My data is grouped on PClass and is as follows :
PClass Months No. (Month * No.)
MONEY MARKET 184 1 184
MONEY MARKET 52 2 104
MONEY MARKET 34 6 204
MONEY MARKET 28 1 28
MONEY MARKET 80 3 240
MONEY MARKET 22 1 22
MONEY MARKET 22 0 0
MONEY MARKET 36 2 72
MONEY MARKET 36 4 144
MONEY MARKET 32 2 64
MONEY MARKET 40 1 40
MONEY MARKET 20 1 20
MONEY MARKET 10 1 10
MONEY MARKET 37 14 518
Sum: 633 39 1650 42 (1650 / 39)
CASH MAX 133 29 3857
CASH MAX 93 19 1767
CASH MAX 110 1 110
CASH MAX 160 5 800
CASH MAX 105 6 630
CASH MAX 124 30 3720
CASH MAX 132 4 528
CASH MAX 145 3 435
CASH MAX 135 17 2295
CASH MAX 156 9 1404
CASH MAX 98 9 882
CASH MAX 154 6 924
Sum: 1545 138 17352 126 (17352 / 138)
The data is summarised and only the numbers 42 and 126 are printed out for each group alongwith PClass.
How do I calculate the Sum of the No. column in order to use it in my calculations?
Any help would be greatly appreciated.
Thanx
Simon Fisher
My data is grouped on PClass and is as follows :
PClass Months No. (Month * No.)
MONEY MARKET 184 1 184
MONEY MARKET 52 2 104
MONEY MARKET 34 6 204
MONEY MARKET 28 1 28
MONEY MARKET 80 3 240
MONEY MARKET 22 1 22
MONEY MARKET 22 0 0
MONEY MARKET 36 2 72
MONEY MARKET 36 4 144
MONEY MARKET 32 2 64
MONEY MARKET 40 1 40
MONEY MARKET 20 1 20
MONEY MARKET 10 1 10
MONEY MARKET 37 14 518
Sum: 633 39 1650 42 (1650 / 39)
CASH MAX 133 29 3857
CASH MAX 93 19 1767
CASH MAX 110 1 110
CASH MAX 160 5 800
CASH MAX 105 6 630
CASH MAX 124 30 3720
CASH MAX 132 4 528
CASH MAX 145 3 435
CASH MAX 135 17 2295
CASH MAX 156 9 1404
CASH MAX 98 9 882
CASH MAX 154 6 924
Sum: 1545 138 17352 126 (17352 / 138)
The data is summarised and only the numbers 42 and 126 are printed out for each group alongwith PClass.
How do I calculate the Sum of the No. column in order to use it in my calculations?
Any help would be greatly appreciated.
Thanx
Simon Fisher