My goal is to have a query that gives me sales, % total sales, call count, % call count, average sale, max sale...etc. grouped by dept.
Here are my queries:
1. qryGrandTotals (sum amount,count of calls)
2. qryCallsDept (groups by dept, count calls)
3. qryDept (groups by dept, sum amount, expression of sum amount/totalamount, count invoice ...etc.
in #3 I try to create a % calls, but seem unable to do it by making an expression that takes sum (calls/totalcalls)
when I use qryCallsDept.calls / qryGrandTotals.calls as a field in #3, I get super inflated inaccurate figures.
I can get the results in a simple query grouping by dept, qyrCallsDept.calls / qryGrandTotals.calls, but whenever I try to integrate it into another query or add other fields the figures go crazy.
Any advice would be appreciated
Here are my queries:
1. qryGrandTotals (sum amount,count of calls)
2. qryCallsDept (groups by dept, count calls)
3. qryDept (groups by dept, sum amount, expression of sum amount/totalamount, count invoice ...etc.
in #3 I try to create a % calls, but seem unable to do it by making an expression that takes sum (calls/totalcalls)
when I use qryCallsDept.calls / qryGrandTotals.calls as a field in #3, I get super inflated inaccurate figures.
I can get the results in a simple query grouping by dept, qyrCallsDept.calls / qryGrandTotals.calls, but whenever I try to integrate it into another query or add other fields the figures go crazy.
Any advice would be appreciated