Hello!
I am trying to count multiple committees served over 3 years on one row.
Currently my Proc Report is repeating the committee on to separate rows by year thus the count is also on the same row.
Current Code:
proc report data=committee_sort;
column division sort dname Name CommitteeName year(count),sum;
define division/group order=data;
define sort/noprint order=data;
define dname/group;
define Name/group;
define CommitteeName/group;
define year/across;
define count/analysis;
rbreak after/summarize;
run;
Sample Data:
Here is one row right now..
When a person serves on the same committee 2 years in a row it shows as below.
Division | dname | Name | CommitteeName | 2014 | 2015 | 2016 |
H | AM | Student 3 | Advisory Committee | 1 | . | . |
| | | | . | . | 1 |
Here is how I would like to have it display and count.
I want one row when a committee is served on for 2 or 3 years and then provide a count across years column.
Division | dname | Name | CommitteeName | 2014 | 2015 | 2016 | Total Across Years |
H | AM | Student 3 | Advisory Committee | 1 | . | 1 | 2 |