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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.