Hi,
I have 2 data sets. Data set Participated and Emp. Participated has all the information of participated events. Emp has the total number of employees. My objective is to calculate the % of depts that participated in the event.
For example, There 5 different depts, dept1-dept5. The total number of employees for each dept are in data set Emp. The number of employees from each dept who participated are in data set Participate. If an employee from dept1 participated, then there would be a record existing in dataset Participate. If they did not participate, then there would be no records in data set Participate.
Data sets look like:
Participate: If the employee from Emp does not exist in this table that means that employee did not participate
empId dept
1234 1
1111 2
1211 2
Emp: Lists the employees and their deptid
empID dept
1234 1
1111 2
1231 3
1211 2
I need to come up with something like:
deptid dept(from set1) dept(from set2) %
1 1 1 100%
2 2 2 100%
3 0 10 0%
4 1 5 20%
what would be the best way of doing this?
Thanks!
I have 2 data sets. Data set Participated and Emp. Participated has all the information of participated events. Emp has the total number of employees. My objective is to calculate the % of depts that participated in the event.
For example, There 5 different depts, dept1-dept5. The total number of employees for each dept are in data set Emp. The number of employees from each dept who participated are in data set Participate. If an employee from dept1 participated, then there would be a record existing in dataset Participate. If they did not participate, then there would be no records in data set Participate.
Data sets look like:
Participate: If the employee from Emp does not exist in this table that means that employee did not participate
empId dept
1234 1
1111 2
1211 2
Emp: Lists the employees and their deptid
empID dept
1234 1
1111 2
1231 3
1211 2
I need to come up with something like:
deptid dept(from set1) dept(from set2) %
1 1 1 100%
2 2 2 100%
3 0 10 0%
4 1 5 20%
what would be the best way of doing this?
Thanks!