picnichouse Posted April 11, 2006 Share Posted April 11, 2006 Hi, I have a pretty simple business report that shows Revenue, Cost of Goods, Gross Profit (Calculation: Revenue - Cost of Goods), and Profit Percent (Calculation: Gross Profit / Revenue). The report is summarized by Customer, and I have Summary fields that total the first three fields and takes an average of the Profit Percet. The problem is, I don't really want an average profit percent -- I want the GrossProfitSUM / RevenueSUM. But when I write that calculation, it doesn't seem to work. I've had this problem before... what's the best way to handle this? Thanks! Andrew Link to comment Share on other sites More sharing options...
BobWeaver Posted April 12, 2006 Share Posted April 12, 2006 Use the GetSummary function to grab the GrossProfitSum and the RevenueSum like so: GetSummary( GrossProfitSum;Customer)/GetSummary( RevenueSum;Customer) Or, just create a weighted average summary field to do a weighted average of ProfitPercent weighted by RevenueSum, which I think should return the same number. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6582 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now