Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
User | Count |
---|---|
121 | |
72 | |
71 | |
57 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
65 | |
55 |