G
Guest
I am trying to find an efficient way of calculating percentages in either a
query or a report.
My database holds information about requests for support. It has a table
‘support’ which lists all the requests which come in, the date they were
received, the date the request was actioned etc. I use the workingdays
function from the Access Web to calculate how many working days it takes to
provide support.
I have queries set up which calculate the number of requests which were
actioned within the target time (<4 days) and those which didn’t meet the
target (>3). More queries count the totals of both these queries. I then have
ANOTHER (!) query which brings them all together to calculate the total
number of requests we received and how many requests met or didn’t meet the
target, for the purposes of calculating a percentage.
The sql (though I can’t write sql) finally looks like this:
SELECT ColinSupportAllCount.Allrequests, ColinSupportMetCount.Mettarget,
[mettarget]/[allrequests] AS [% Support requests met target],
ColinSupportNotMetCount.Failledtomeet, [failledtomeet]/[allrequests] AS [%
Support requests failed targets]
FROM ColinSupportAllCount, ColinSupportMetCount, ColinSupportNotMetCount,
ColinSupportAll
GROUP BY ColinSupportAllCount.Allrequests, ColinSupportMetCount.Mettarget,
[mettarget]/[allrequests], ColinSupportNotMetCount.Failledtomeet,
[failledtomeet]/[allrequests];
My question is this: Is there a more efficient way of doing this, either in
a query or a perhaps using calculations in a report? I don’t really want to
have to build all these separate queries. I’m sure there must be a better
way. My ignorance of Access (or perhaps maths!) may be at fault. Any advice
would be much appreciated.
query or a report.
My database holds information about requests for support. It has a table
‘support’ which lists all the requests which come in, the date they were
received, the date the request was actioned etc. I use the workingdays
function from the Access Web to calculate how many working days it takes to
provide support.
I have queries set up which calculate the number of requests which were
actioned within the target time (<4 days) and those which didn’t meet the
target (>3). More queries count the totals of both these queries. I then have
ANOTHER (!) query which brings them all together to calculate the total
number of requests we received and how many requests met or didn’t meet the
target, for the purposes of calculating a percentage.
The sql (though I can’t write sql) finally looks like this:
SELECT ColinSupportAllCount.Allrequests, ColinSupportMetCount.Mettarget,
[mettarget]/[allrequests] AS [% Support requests met target],
ColinSupportNotMetCount.Failledtomeet, [failledtomeet]/[allrequests] AS [%
Support requests failed targets]
FROM ColinSupportAllCount, ColinSupportMetCount, ColinSupportNotMetCount,
ColinSupportAll
GROUP BY ColinSupportAllCount.Allrequests, ColinSupportMetCount.Mettarget,
[mettarget]/[allrequests], ColinSupportNotMetCount.Failledtomeet,
[failledtomeet]/[allrequests];
My question is this: Is there a more efficient way of doing this, either in
a query or a perhaps using calculations in a report? I don’t really want to
have to build all these separate queries. I’m sure there must be a better
way. My ignorance of Access (or perhaps maths!) may be at fault. Any advice
would be much appreciated.