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
KB515
New Member

Stacked Column Chart with Cell value as x axis

Hello, I data from a survey that was collected. Each column is a survey question and each row is a participant. The cells are the text value for the answered response. I have 3 questions (Q1, Q2, Q3) that are the same with the same responses of Yes, No, or Unknown. I want to make a stacked column chart with the responses (yes, no, or unknown) as the x axis. The y axis would be the total count of each response with each of the break down colors being each question, so the legend would be the question. Hopefully that makes sense.

 

Is this possible? I am sure I would need to transform the data somehow but I am not sure what to do to get these results.

 

Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @KB515 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1675737376830.png

(2) Click "Transform Data" to enter the Power Query editor, select these three columns and click "unpivot only selected columns", then rename the two columns after transpose.

Picture1.pngPicture2.png

(3)Click "Apply and close" and then the result is as follows.

Picture3.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @KB515 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1675737376830.png

(2) Click "Transform Data" to enter the Power Query editor, select these three columns and click "unpivot only selected columns", then rename the two columns after transpose.

Picture1.pngPicture2.png

(3)Click "Apply and close" and then the result is as follows.

Picture3.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

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