Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Cant get Matrix report as needed

Hi,

I have explained issue below, help is appreciated

I have data like

EmpIDTainingStatus
1PhysicalSecurityDropped
1PhysicalSecurityCompleted
1Client RelationIn Progress
2PhysicalSecurityIn Progress
2PhysicalSecurityDropped
3Client RelationIn Progress
3Client RelationDropped
3Client RelationIncomplete
3Client RelationNo Show
3PhysicalSecurityDropped
3PhysicalSecurityCompleted
4PhysicalSecurityIn Progress
4PhysicalSecurityDropped
4Client RelationIn Progress
4Client RelationDropped
11PhysicalSecurityDropped
11PhysicalSecurityCompleted
11Client RelationIn Progress
12PhysicalSecurityIn Progress
12PhysicalSecurityDropped
13Client RelationIn Progress
13Client RelationDropped
13Client RelationIncomplete
13Client RelationNo Show
13PhysicalSecurityDropped
13PhysicalSecurityCompleted
14PhysicalSecurityIn Progress
14PhysicalSecurityDropped
14Client RelationIn Progress
14Client RelationDropped

 

i need report like 

TrainingCompletedIn ProgressIncompleteDroppedNo ShowTotals
PhysicalSecurity440008
Client Relation060006
Totals41000014

This is because employee can attempt multiple times ,

So, need to get counts using below logic

 

Get Distinct Emplyee ID Count for Completed Status
Exclude Emplyee ID for completed and get Distinct Emplyee ID Count for In Progress Status
Exclude Emplyee ID for completed, In Progress and get Distinct Emplyee ID Count for Incomplete Status
Exclude Emplyee ID for completed, In Progress, Incomplete and get Distinct Emplyee ID Count for Dropped Status
Exclude Emplyee ID for completed, In Progress, Incomplete,Dropped and get Distinct Emplyee ID Count for No Show Status

No Replies