Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum of Weighted Value 1

Status
Not open for further replies.

globularbob

Programmer
Nov 15, 2002
69
US
Hello

I am stumped. I am trying to sum the score of a weighted value. The field I am trying to sum contains the following formula:

((PlatAHT}-{AHT})/{StdDevAHT})*({nch}/Sum (nch}, (Fullname})*100

In summary, I want to create a total weighted statistical Z score. I realize that the formula fails when I try to derive the percent of nch to the sum of nch to get the %. Is there any way to do this????

Thanks in advance!!
Bob
 
Hi
try this
totext(sum(PlatAHT}-{AHT})/{StdDevAHT})*({nch}/Sum (nch}, (Fullname})*100,3)+"%")
cheers

pgtek

 
A bit vague, such as where this formula is, what exactly you want, but if all you want to do is sum that formula, try:

Group Header for Fullname:
numbervar MySum:= 0;

Group Footer for Fullname:
numbervar MySum:= MySum+
((PlatAHT}-{AHT})/{StdDevAHT})*({nch}/Sum (nch}, (Fullname})*100;

Report Footer: //Used to display the sum
numbervar MySum

-k
 
Hi

Thanks to both for the quick replies! The formula is in the details section, and I'm trying to put the sum of the weighted average in the associate's name group.

Again, thanks!!

bob

 
SynapseVampire,

I created 3 formulas: one for the header, one for the detail, and one for the footer. Each header and footer return 0, but the detail is a running total.

What am I missing?

Tons of thanks!!
 
I got it!

Thanks for all of your help. I just had to noodle with the placement of the header and footer formulas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top