Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet 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
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
Solved! Go to 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):
So your data is something like this?
Responder | Q1 Answer | Q2 Answer | Q3 Answer | Q4 Answer | Q5 Answer |
1 | yes | yes | no | yes | no |
2 | yes | no | no | yes | no |
3 | no | yes | no | yes | yes |
4 | yes | no | yes | yes | no |
5 | yes | yes | no | no | yes |
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):
Thank you so much. It works!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
76 | |
74 | |
55 | |
45 |
User | Count |
---|---|
117 | |
106 | |
77 | |
66 | |
65 |