Hi,
I have a query that calculates percentages for a group of employees, grouped by department. The goal was to have results that looked something like this:
# Employees DEPT Percentage of Respondents
228 Operations 28.78
215 Corporate 27.14
The query is working well, but right now its showing percentages such as 28.78787878. Is there a way, within the query that I can round to the nearest tenth or hundredth? Here's my query:
SELECT 100*[qryDept].[CountOfdept]/792 AS Percentage, qryDept.dept, qrydept.CountOfdept
FROM qrydept
GROUP BY qrydept.dept, qrydept.CountOfdept
ORDER BY qrydept.CountOfdept DESC;
Thanks in advance!
I have a query that calculates percentages for a group of employees, grouped by department. The goal was to have results that looked something like this:
# Employees DEPT Percentage of Respondents
228 Operations 28.78
215 Corporate 27.14
The query is working well, but right now its showing percentages such as 28.78787878. Is there a way, within the query that I can round to the nearest tenth or hundredth? Here's my query:
SELECT 100*[qryDept].[CountOfdept]/792 AS Percentage, qryDept.dept, qrydept.CountOfdept
FROM qrydept
GROUP BY qrydept.dept, qrydept.CountOfdept
ORDER BY qrydept.CountOfdept DESC;
Thanks in advance!