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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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