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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
travbum
Advocate I
Advocate I

Multiple Stacked Bar Charts

pi question.png

 

Is something like this possible? I have a bunch of questions of "Do you agree with X" that I need to be able to display side by side and the following is the best I can come up with currently which just isn't that good.

pi question2.png

 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@travbum As I suspected you have to Unpivot the Data.

 

With the sample you posted => Edit Queries => select the User ID column => Unpivot Other => Close & Apply

 

100% Stacked Bar Chart - QE.png

 

Then set up as my original answer!

 

100% Stacked Bar Chart.png

 

 

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi,

Does anyone know if it is possible to do Multiple Stacked Bar Charts like that but broken down into time sectors . So In my case I want time periods on the X axis then columns representing different scenarios which is then broken down into stacks which represent different costs.Example drawn badly in paint!Example drawn badly in paint!

Anonymous
Not applicable

Hi,

Does anyone know if it is possible to do Multiple Stacked Bar Charts like that but broken down into time sectors . So In my case I want time periods on the X axis then columns representing different scenarios which is then broken down into stacks which represent different costs.Example drawn badly in paint!Example drawn badly in paint!

Sean
Community Champion
Community Champion

@travbum How is your data organized ? Can you post a sample of your data?

 

If you can set up the Chart like this you should get the result in the top picture!

Axis - Question

Legend - Answer/Response

Value - Your Measure (counting or summing the responses depending on your setup)

@Sean - I can't say I understand your solution. Here is the data:

 

UserIDQuestion1Question2Question3
0Agree a lotAgreeNeutral
1DisagreeAgreeAgree
2Agree a lotDisagree a lot 
3DisagreeAgree a lotAgree a lot
4 DisagreeDisagree
5AgreeDisagreeDisagree
6Agree a lot Neutral
7Agree a lotAgreeNeutral
8DisagreeAgree 
9 Disagree a lotDisagree
10Agree a lotAgree a lotAgree a lot
11DisagreeDisagreeDisagree
12Disagree Disagree
13AgreeDisagree a lotAgree
14DisagreeDisagreeDisagree
15Agree a lotAgree a lotAgree a lot
16 Disagree 
17Agree a lotAgree a lotAgree a lot
Sean
Community Champion
Community Champion

@travbum As I suspected you have to Unpivot the Data.

 

With the sample you posted => Edit Queries => select the User ID column => Unpivot Other => Close & Apply

 

100% Stacked Bar Chart - QE.png

 

Then set up as my original answer!

 

100% Stacked Bar Chart.png

 

 

gorli
Regular Visitor

Hi,

 

I have a very similar problem. But when I try to unpivot and apply changes I get an error message saying that the ID cannot be double.

 

Any idea?

@Sean - Excellent answer thank you so much.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.