G
Guest
This is part of the database I've been talking about for the past few posts.
My colleague uses Access 2003, I have 2002, so please let me know if the
answer may be different based upon which we are using. The actual database is
being created on his 2003 version, but I may test things out with a test
database on my 2002 version.
We have a table containing employee info (names, extensions, etc.), the name
of the supervisor, and their stats. What we want to do is to total a couple
stats for the supervisor, then use the two totals to get an average. In other
words, say supervisor Ben has five employees. In the table, those five
employees will all be listed with their stats, and Ben's name as their
supervisor. We want to be able to add, say TotalCalls for those five reps to
get a total for Ben, then, say TotalSolved for those five reps to get the
total for Ben of that as well. Then, we'd want to divde TotalSolved by
TotalCalls to get the overall percentage of calls Ben's employees solved.
Can this be done in a query? I know it can be done in a report, but we need
to take the data we get and pull it into an Excell spreadsheet. I don't think
a report can translate into an Excell spreadsheet.
To further illustrate my example just suppose this is the table:
Emp Supervisor Total Calls Total Solved
Meep Ben 135 135
Batman Ben 100 50
Superman Ben 150 140
What we would then want is to be able to calculate Ben's total calls to get
385. We'd also want to calculate Ben's total solved to get 325. We'd then
want to divde total solved by total calls to get about 0.844.... Or, 84%
(84.4%, whatever we decide to do with decimals). Is this possible in a query
so it will make it easy to then pull the needed information into an Excell
spreadsheet?
--
Have a nice day!
~Paul
Express Scripts,
Charting the future of pharmacy
My colleague uses Access 2003, I have 2002, so please let me know if the
answer may be different based upon which we are using. The actual database is
being created on his 2003 version, but I may test things out with a test
database on my 2002 version.
We have a table containing employee info (names, extensions, etc.), the name
of the supervisor, and their stats. What we want to do is to total a couple
stats for the supervisor, then use the two totals to get an average. In other
words, say supervisor Ben has five employees. In the table, those five
employees will all be listed with their stats, and Ben's name as their
supervisor. We want to be able to add, say TotalCalls for those five reps to
get a total for Ben, then, say TotalSolved for those five reps to get the
total for Ben of that as well. Then, we'd want to divde TotalSolved by
TotalCalls to get the overall percentage of calls Ben's employees solved.
Can this be done in a query? I know it can be done in a report, but we need
to take the data we get and pull it into an Excell spreadsheet. I don't think
a report can translate into an Excell spreadsheet.
To further illustrate my example just suppose this is the table:
Emp Supervisor Total Calls Total Solved
Meep Ben 135 135
Batman Ben 100 50
Superman Ben 150 140
What we would then want is to be able to calculate Ben's total calls to get
385. We'd also want to calculate Ben's total solved to get 325. We'd then
want to divde total solved by total calls to get about 0.844.... Or, 84%
(84.4%, whatever we decide to do with decimals). Is this possible in a query
so it will make it easy to then pull the needed information into an Excell
spreadsheet?
--
Have a nice day!
~Paul
Express Scripts,
Charting the future of pharmacy