Forum Discussion

Leow Chee Voon's avatar
Leow Chee Voon
Copper Contributor
Sep 20, 2018

What is the best way to count a set of data

Hello guys!

 

I encounter the following problem. I need to count number of occurrence of OFF, MC, AL and etc day for James, Jane and John for the set of date range. (as per sample data)

 

DateJamesJaneJohn
21-Aug-18PPP
22-Aug-18OFFPP
23-Aug-18PPP
24-Aug-18PPP
25-Aug-18PPP
26-Aug-18OFFOFFP
27-Aug-18PPP
28-Aug-18PPP
29-Aug-18PHDP
30-Aug-18PPP
31-Aug-18OFFOFFP
1-Sep-18PMCP
2-Sep-18OFFOFFP
3-Sep-18PMCP
4-Sep-18PPP
5-Sep-18PPP
6-Sep-18PPP
7-Sep-18PPP
8-Sep-18PPP
9-Sep-18OFFOFFP
10-Sep-18OFFOFFP
11-Sep-18PLATEP
12-Sep-18PPP
13-Sep-18PLATEP
14-Sep-18PPP
15-Sep-18PPP
16-Sep-18POFFP
17-Sep-18POFFP
18-Sep-18PPAL
19-Sep-18PMCP

20-Sep-18

 

PP 

 

Need to summarize it as follows

 

 

 JamesJaneJohn
OFF670
UPL   
AL  
HD  1 
MC  
LATE  
ABS   

 

What is the best way to do it? Appreciate your help!

 

 

Resources