Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a survey question:
Which of these did you do:
A) I did A
B) I did B
C) I did C
which results in a table:
| I did A | I did B | I did C |
| TRUE | TRUE | |
| TRUE | TRUE | |
| TRUE | TRUE | |
| TRUE | TRUE |
How could I turn this into a bar chart?
Solved! Go to Solution.
Another way is:
Step 1
Go to Edit Queries
Select your columns with answers.
Transform - Unpivot Columns
Step 2
In the bar chart put Attribute (You can change the name to Question or another) in axis and Values(You can change the name to answer or another) in Value section
Ah, that is not how I thought to do that. Thanks! How would I get a legend in there? All I have in the legend now is "Count of Q1_A", "Count of Q1_B","Count of Q1_C"
you need to create a measure for each column:
A = CALCULATE(COUNTROWS(Survey),Survey[I did A]=True)
B = CALCULATE(COUNTROWS(Survey),Survey[I did B]=True)
C = CALCULATE(COUNTROWS(Survey),Survey[I did C]=True)
Is there no other easier/alternative way to do things? I"ve got like 40 survey questions like this.
Another way is:
Step 1
Go to Edit Queries
Select your columns with answers.
Transform - Unpivot Columns
Step 2
In the bar chart put Attribute (You can change the name to Question or another) in axis and Values(You can change the name to answer or another) in Value section
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |