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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.