Forum Discussion

rainbow_isla's avatar
rainbow_isla
Frequent Visitor
5 years ago
Solved

How to link and visualize yes/no data sets

First data - Substances

IDMethAlcoholOpioid
1yesnoyes
2noyesno
3noyesyes

Second data - Mental health disorder

IDADHDDepression
1yesyes
2nono
3noyes

yes means the patient use the substance or has the mental health disorder.

 

I want to visualize ADHD by substances, Depression by substances to see the distribution of substance use.

Visual can be donut, box or whatever.

 

I can visualize each of data sets  by using "unpivot". 

If I merge then unpivot, I got the table below.

IDMental Subtance 
1ADHDyesMethyes
1ADHDyesAlcoholno
1ADHDyesOpioidyes
1DepressionyesMethyes
1DepressionyesAlcoholno
1DepressionyesOpioidyes

Any help or comments will be appreicated.

 

2 Replies