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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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