Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Special Calculation
Message
De
10/05/2001 09:35:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/05/2001 09:32:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00505729
Message ID:
00505734
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform