Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
112 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |