Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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 November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.