ThomasLafferty
Instructor
Hi there. I have a crosstab query for reporting survey results by department. Currently it returns the number of times individuals in a given department chose a certain category. This works fine. In my report which references this query, I need to know how many individuals as a total percentage of all individuals chose the given option.
Here's the SQL:
Here's a screenshot of the design grid:
Here's a screenshot of the results:
Here's the report design:
And preview of the report:
What I am looking for is a way of knowing, for example, out of the 20 warehouseman, how many indicated that they wasted 25 percent of their time (this is 25 column) as a percentage of the total number of employees in that department.
Thanks in advance!
Tom
Born once die twice; born twice die once.
Here's the SQL:
Code:
TRANSFORM Count(tblNonEssentialTasks.PercentTime) AS CountOfPercentTime
SELECT tblResults.Department
FROM tblResults INNER JOIN tblNonEssentialTasks ON tblResults.EmpNo = tblNonEssentialTasks.EmpNo
GROUP BY tblResults.Department
PIVOT tblNonEssentialTasks.PercentTime;
Here's a screenshot of the design grid:
Here's a screenshot of the results:
Here's the report design:
And preview of the report:
What I am looking for is a way of knowing, for example, out of the 20 warehouseman, how many indicated that they wasted 25 percent of their time (this is 25 column) as a percentage of the total number of employees in that department.
Thanks in advance!
Tom
Born once die twice; born twice die once.