Forum Discussion
Structuring data for survey analysis
- 5 years ago
Hi WBscooby ,
First go to query editor>select column"Person ID"and "Survey ID">"Unpivot other columns":
Create a relationship as below:
Then create a calculated column and a measure as below:
Is 1? = IF('survey table'[Value]="1",1,0)Measure = IF(SUMX(FILTER(ALL('survey table'),'survey table'[Question Number]=MAX('survey table'[Question Number])),'survey table'[Is 1?])>=1,1,0)Finally you will see:For the related .pbix file,pls see attached.Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Hi WBscooby
Can you describe a bit more the analysis that you would like to do on the data? What visuals, etc..
The text below is not clear enough
Ultimately, I would like to analyse the data by question number and by question subset ie. if there is a 1 in any of the health questions, then 1, otherwise 0.
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers