Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help With Report Variables - Foxpro/Lan 2.0
Message
From
19/10/1997 03:51:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
15/10/1997 15:50:59
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00054726
Message ID:
00055347
Views:
31
>I can get the average of the individual sales that way but what I want is a >weighted average by dividing the total sales by the total boardfeet. for >example if there are three sales: 800 boardfeet for $132.00, 1372 bf for >$240.00, and 352 bf for $120.00 I can get an average of $226.94. What I >need is the total sales of $492.00 (which is printed in the group summary >band)* 1000 / the total boardfeet of 2524 (also printed in the group >summary band) for an average of $194.93/1000 bf. The report calculates the For weighed totals you need two report variables - one to keep the total amount, and another to keep the total quantity, reset both on the group level. In the group footer you should print total_amnt/total_qty, and that's the weighed average.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform