report2000
Technical User
Hi,
I am trying to use runningTotal field feature in crystal reports to calculate "Weighted Average" for a set of datas.
The RunningTotal wizard tool lets me only to select the following fields:
(1) Field to Summerize - AverageHourlyPay
(2) Type of Summary - Weighted Average
(3) with - NumberofEmployees
The formula to calculate the Weighted average is the following
Based on the requirement's guideline)
sumofthe(AverageHourlyPay*NumberOfEmployees)/SumOfNumberOfEmployees
I tried to write two functions to calculate the first part of formula and the second. Then use the unningTotal field feature in crystal reports to calculate the weighted average. (Not successful - Doesnot allowed to bring in funtions into the fields).
Thank you
I am trying to use runningTotal field feature in crystal reports to calculate "Weighted Average" for a set of datas.
The RunningTotal wizard tool lets me only to select the following fields:
(1) Field to Summerize - AverageHourlyPay
(2) Type of Summary - Weighted Average
(3) with - NumberofEmployees
The formula to calculate the Weighted average is the following
sumofthe(AverageHourlyPay*NumberOfEmployees)/SumOfNumberOfEmployees
I tried to write two functions to calculate the first part of formula and the second. Then use the unningTotal field feature in crystal reports to calculate the weighted average. (Not successful - Doesnot allowed to bring in funtions into the fields).
Thank you