I am having a really hard time trying to get an expression right in a sub-form that is for display purposes. Maybe some math experts could help out.
I am trying to properly calculate distributor net (DN), customer net (CN), profit and % mark up (GP).
Distributor net was easy, just sum our cost together. Customer net, in a nutshell, is easy as well. Take % markup and divide it by the CN. However, I cant get the query to do it correctly.
I tried initially just having it average the GP then divided the CN by it, but the average verse the...mean? isn't the same. A short example:
GP values are:
5, 7, 6, 9, 4, 10, 8 ,7 and 8%.
Access averages that out to around 7.1%.
Using those same values (shown in a different manner like .95, .92 etc.) in Excel, those same mark up values actually comes out to 5.24%.
If we have a DN of $13763.00 and divide it by the 7.1%, we get something around $14657.08. Whereas by 5.24% we get $14523.70, which is correct based on adding up the individual marked up values.
To get to the 5.24%, in our Excel sheet we simply do the profit divided by the CN then convert it to a percent. I can't do that in my App since CN is already based of GP, so it would create a circular reference.
Anyone have an idea to remedy this? It is a minor thing and is driving me insane.
I am trying to properly calculate distributor net (DN), customer net (CN), profit and % mark up (GP).
Distributor net was easy, just sum our cost together. Customer net, in a nutshell, is easy as well. Take % markup and divide it by the CN. However, I cant get the query to do it correctly.
I tried initially just having it average the GP then divided the CN by it, but the average verse the...mean? isn't the same. A short example:
GP values are:
5, 7, 6, 9, 4, 10, 8 ,7 and 8%.
Access averages that out to around 7.1%.
Using those same values (shown in a different manner like .95, .92 etc.) in Excel, those same mark up values actually comes out to 5.24%.
If we have a DN of $13763.00 and divide it by the 7.1%, we get something around $14657.08. Whereas by 5.24% we get $14523.70, which is correct based on adding up the individual marked up values.
To get to the 5.24%, in our Excel sheet we simply do the profit divided by the CN then convert it to a percent. I can't do that in my App since CN is already based of GP, so it would create a circular reference.
Anyone have an idea to remedy this? It is a minor thing and is driving me insane.