Here is the database values:
Field1 field 2 field3
chp 10-13937 child name#1 Processed child
chp 10-13937 child name#2 Processed child
chp 10-13967 childname#1 processed child
chp10 -13967 adultname#1 Processed Adult
chp10-18067 childname#1 Rejected Child
chp10-18067 childname#2 Rejected Child
MCW10-20012 adultname#1 Rejected Adult
MCW10-20012 adultname#2 Rejected Adult
I created variable which stores processed child or rejected child as child and processed adult or rejected adult as Adult with using if and else category.
I want to see the result as follows:
Child
chp 10-13937
chp10-18067
Count:2
Adult
MCW10-20012
Count:1
Adult and child
chp 10-13967
Count:1