need to show percentage of actions completed on time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I a column with the target date and another column with the actual date
completed. I want to calculate the percentage of actions completed by the
target date and show this in a report. Can you advise on how to do this?

J
 
I can name that tune in 3 queries...

Query2:
SELECT Q.Status, Count(Q.ID) AS Cnt
FROM [SELECT tblTarget.ID, IIf([Target]<=[Actual],"On Time","Late") AS Status
FROM tblTarget]. AS Q
GROUP BY Q.Status;

Query3:
SELECT Sum(Cnt) AS Whole
FROM Query2;

Query4:
SELECT Query2.Status, Query2.Cnt, Query3.Whole, [cnt]/[whole] AS Pct
FROM Query2, Query3;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top