J
JDubs
I have a table that looks somewhat like this:
Group JobType JobStatus
A Parts Complete
A Repair New
A Parts Complete
B Repair Complete
B Parts New
I want to query a count of a certain JobStatus for each JobType i.e.
JobStatus="Complete", also a count all of the Jobs and then calculate a
percentage for jobs complete CountOfCompleteJobStatus/CountOfTotalJobs AS
JobStatusPercent. I'd like to group by JobType.
Thats just the beginning, then I need to do this for each Group and an
Aggregate for the all Groups together. I assume for this part it might be
easier to do each individual group and the aggregate seperately and then just
merge them in a report, but it would be heavenly to have them all in the same
query (as nasty as it might be).
I keep getting "You tried to execute a query that does not include the
specified expression 'CountOfJobStatus' as part of an aggregate function.
Any help you can provide would be greatly appreciated.
Group JobType JobStatus
A Parts Complete
A Repair New
A Parts Complete
B Repair Complete
B Parts New
I want to query a count of a certain JobStatus for each JobType i.e.
JobStatus="Complete", also a count all of the Jobs and then calculate a
percentage for jobs complete CountOfCompleteJobStatus/CountOfTotalJobs AS
JobStatusPercent. I'd like to group by JobType.
Thats just the beginning, then I need to do this for each Group and an
Aggregate for the all Groups together. I assume for this part it might be
easier to do each individual group and the aggregate seperately and then just
merge them in a report, but it would be heavenly to have them all in the same
query (as nasty as it might be).
I keep getting "You tried to execute a query that does not include the
specified expression 'CountOfJobStatus' as part of an aggregate function.
Any help you can provide would be greatly appreciated.