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, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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