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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.