Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
tdanzeisen
Frequent Visitor

How to visualize several yes/no questions in one diagram

Hey everybody,

 

 

 

I try to visualize the results of a survey. I have five columns, which are all filled with yes or no. Now I want to create a diagram that shows for each of the five colums the amount of the answer "yes". Thus, the diagram should show the amount of yes answers for question 1, question 2, question 3, question 4 and question 5.

 


Best,


Tobias

1 ACCEPTED SOLUTION

If @bblais is correct, which I imagine he is given your description, go to the query editor and select the responder column.  Right click and select "Unpivot Other Columns" (rename Attribute and Value if you want).

 

Close and apply, then create a visual (bar chart works well here) and add Attribute to axis, Value to legend, and Value to value (changing it to count for the aggregation):

 

Capture.PNG

View solution in original post

3 REPLIES 3
bblais
Resolver III
Resolver III

So your data is something like this?

 

ResponderQ1 AnswerQ2 AnswerQ3 AnswerQ4 AnswerQ5 Answer
1yesyesnoyesno
2yesnonoyesno
3noyesnoyesyes
4yesnoyesyesno
5yesyesnonoyes

 

 

 

If not, can you please post an example of the data to help make sure we can give you the best solution?

If @bblais is correct, which I imagine he is given your description, go to the query editor and select the responder column.  Right click and select "Unpivot Other Columns" (rename Attribute and Value if you want).

 

Close and apply, then create a visual (bar chart works well here) and add Attribute to axis, Value to legend, and Value to value (changing it to count for the aggregation):

 

Capture.PNG

Thank you so much. It works!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.