Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Special Calculation
Message
From
10/05/2001 09:35:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/05/2001 09:32:07
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00505729
Message ID:
00505734
Views:
19
>In my report, I want to calculate the %Sale value.
>For that, I need to divide Sale by Total of Sales.
>The problem is when each row is printing the total
>of sales is not completly calculated. How can I do
>that? Does I need to calculate it before printing?
>
>Description Qty Sale %Sale
>------------ ----- --------- ---------
>Product 1 200 $5000.00 50.00
>Product 2 150 $2000.00 20.00
>Product 3 150 $3000.00 30.00
>TOTAL 500 $10000.00 100.00
>
>
>Thank you for your help.

Yes it would be to easy to place total before report in an array :
select sum(..) ... into array arrTot
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform