Trying to calculate total profit margin percentage

jmriddic

Registered User.
Local time
Today, 10:14
Joined
Sep 18, 2001
Messages
150
I tried this in an unbound text box but it keeps giving me a missing )

=(((Sum([ProdUnitPrice]))-(Sum([ProdUnitCost])))/Sum([ProdUnitPrice])

Basically (total UnitPrice- total Unit cost) /Total Unit Price
 
Why don't you start from scratch and add them in one by one. You've got the logic already.
 
one by one?
 
You've got three Sum() calculations and your logic shows the correct bracketting.
 
But I want to calcuate the total profit margin percentage off the totals for each field not one by one. I guess the one by one statement is a little vague
 
What I mean is, here's your logic with the correct parentheses:
Code:
[B][COLOR=Red]([/COLOR][/B]total UnitPrice [B][COLOR=Blue]-[/COLOR][/B] total Unit cost[B][COLOR=Red]) [/COLOR][COLOR=Blue]/[/COLOR][/B] Total Unit Price
You have three Sum() calculations, e.g. Sum([ProdUnitPrice]). So you simply substitute the values in your logic with the Sum() as I wrote it above. No extra parentheses needed.
 

Users who are viewing this thread

Back
Top Bottom