Hi All,
I have a doozy for you. I have a query that tells me two things. Take the following:
AnalystID AnalystCompleted Expr1
5 5 0
5 4 1
5 5 0
5 5 0
This is a look at an assignment, who it was originally assigned to (AnalystID), and who actually completed it (AnalystCompleted). Expr 1, counts the number of times the two columns don't match.
This tells me two things depending on how I look at it. If I were to throw this in a report and group by Analyst ID, it would tell me how many times someone else completed an Analysts assignment. If I grouped by AnalystCompleted, it would tell me how many times an analyst has done another person's assignment. In all, by analyst, the amount of assignments done BY others, and amount done FOR others.
I do NOT want to create two separate sub reports just to tell me this so that I can use the totals in calculations on a main report. I was attempting to do this on the query level but that doesn't seem possible either. I then thought perhaps a defined Function for SQL SELECT... SUM... FROM... GROUP BY... but I really have no idea how to make it work.
Any ideas? I hope this was clear enough to understand.. Let me know if you need more detail...
Thanks in advance for the help!
K
I have a doozy for you. I have a query that tells me two things. Take the following:
AnalystID AnalystCompleted Expr1
5 5 0
5 4 1
5 5 0
5 5 0
This is a look at an assignment, who it was originally assigned to (AnalystID), and who actually completed it (AnalystCompleted). Expr 1, counts the number of times the two columns don't match.
This tells me two things depending on how I look at it. If I were to throw this in a report and group by Analyst ID, it would tell me how many times someone else completed an Analysts assignment. If I grouped by AnalystCompleted, it would tell me how many times an analyst has done another person's assignment. In all, by analyst, the amount of assignments done BY others, and amount done FOR others.
I do NOT want to create two separate sub reports just to tell me this so that I can use the totals in calculations on a main report. I was attempting to do this on the query level but that doesn't seem possible either. I then thought perhaps a defined Function for SQL SELECT... SUM... FROM... GROUP BY... but I really have no idea how to make it work.
Any ideas? I hope this was clear enough to understand.. Let me know if you need more detail...
Thanks in advance for the help!
K
