Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
travbum
Advocate I
Advocate I

Data from multiple columns in one visual

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 AI did BI did C
TRUETRUE 
 TRUETRUE
   
TRUETRUE 
 TRUETRUE

 

 

How could I turn this into a bar chart?

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

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

 




Lima - Peru

View solution in original post

5 REPLIES 5
Vvelarde
Community Champion
Community Champion

@travbum

 

Put the three columns in value section of bar chart visual

 

 




Lima - Peru

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"

Vvelarde
Community Champion
Community Champion

@travbum

 

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)




Lima - Peru

Is there no other easier/alternative way to do things? I"ve got like 40 survey questions like this.

Vvelarde
Community Champion
Community Champion

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

 




Lima - Peru

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors