I have a table of Employee Details and I would like to identify the count of a few fields combinedly and identify the count to get the progress % at a Function level
Emp Table:
Along with that, I have a table with all the Function IDs along with Function Names as below:
Now I would like to use the QUERY and get the counts based on the blank fields from the Employee Table at a record level grouped at Function Level:
Note: the count has to be taken at a record level and if any of the highlighted fields are blank then that record needs to be treated as 1 and then combine at a Function Level based on Function Name/Function ID.
I also would like to calculate the progress like Head Count - Blank Count Status/ Head Count would give me the Progress %.
Note: If there are no blanks then it should show 100% and that means fields have been updated completely for the specific functions.
Please help!!
Emp Table:
Emp ID | Function ID | Readiness Status | Time Frame | Criticality_Reason |
1 | 2 | Change Likely within 1 Year | Expert | |
2 | 2 | Change Likely within 2 Years | < 2 Years | Main Source |
3 | 1 | Change Likely within 4 Years | <4 Years | Main Source |
4 | 2 | < 3 Years | Hard to find | |
5 | 3 | Main source | ||
6 | 3 | Change Likely within 4 Years | <4 Years | Main Source |
7 | 1 | Change Likely within 3 Years | <3 Years | Hard to find |
Along with that, I have a table with all the Function IDs along with Function Names as below:
Function_ID | Function_Name |
---|---|
1 | Accounts Payable |
2 | F&A Excellence |
3 | FP&A |
4 | GL Accounting |
5 | Revenue Operations |
6 | Tax |
7 | Treasury |
Now I would like to use the QUERY and get the counts based on the blank fields from the Employee Table at a record level grouped at Function Level:
Function Name | Head Count | Blank Count Status |
Accounts Payable | 2 | 0 |
F&A Excellence | 3 | 2 (as there are only 2 records with blanks related to that specific function) |
FP&A | 2 | 1 (as there is only one record with blanks for that specific function) |
Note: the count has to be taken at a record level and if any of the highlighted fields are blank then that record needs to be treated as 1 and then combine at a Function Level based on Function Name/Function ID.
I also would like to calculate the progress like Head Count - Blank Count Status/ Head Count would give me the Progress %.
Note: If there are no blanks then it should show 100% and that means fields have been updated completely for the specific functions.
Please help!!