Hi
I have a data set which contains Patient IDs and referral reasons Ref1-Ref12. The values which fall under Ref1 - Ref12 are either 1 or 0 (denoting ticked, not ticked). I would like to a breakdown of the referral reasons by the most popular and so on.
Current Data set:
Patient ID Ref1 Ref2 Ref3 Ref4
123564 1 0 1 0
569845 1 0 0 0
785645 1 1 1 0
Desired output:
Ref1 3
Ref3 2
Ref2 1
Ref4 0
In other words I need a count of the '1' which falls under each referral reason's column.
Any suggestions are most welcome.
Thanks
I have a data set which contains Patient IDs and referral reasons Ref1-Ref12. The values which fall under Ref1 - Ref12 are either 1 or 0 (denoting ticked, not ticked). I would like to a breakdown of the referral reasons by the most popular and so on.
Current Data set:
Patient ID Ref1 Ref2 Ref3 Ref4
123564 1 0 1 0
569845 1 0 0 0
785645 1 1 1 0
Desired output:
Ref1 3
Ref3 2
Ref2 1
Ref4 0
In other words I need a count of the '1' which falls under each referral reason's column.
Any suggestions are most welcome.
Thanks