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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Several Values for Stacked Column Chart

Hello everyone,

I have this dataset:

DimensionColumn1Column2Column3Column4
row1223277Extern
row2114368Extern
row3445487Extern
row4336598Intern
row5557689Intern
row6667887Intern

 

And I need to represent a chart where divides each column (column1, column2 and column3) by Extern or Intern (it's going to be the Legend taken from column4) and it is possible to do it with the Stacked Column Chart, but the difference here is that I have several rows for Axis Field and several columns for Values Field... and this chart looks like only accepts one single column in the Values Field because it doesn't allow to put more than one...

 

amartinezvila_0-1656404612324.png

 

Please, anyone could help me to show the values of column1, column2 and column3 divided by the legend (Extern and Intern). This is what I would like to get:

amartinezvila_1-1656404863621.png

 

Thank you so much, I will appreciate your help.

Have a nice day.

Ana M.

 

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

For achieving this you need to unpivot the values columns. On the query editor select the column 1,2 ,3 and then unpivot:

MFelix_0-1656405776169.png

It will give you the result below:

MFelix_1-1656405796785.png

Rename the columns has you wish and do your chart using the following setup:

MFelix_2-1656405913899.png

 

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @Anonymous ,

 

For achieving this you need to unpivot the values columns. On the query editor select the column 1,2 ,3 and then unpivot:

MFelix_0-1656405776169.png

It will give you the result below:

MFelix_1-1656405796785.png

Rename the columns has you wish and do your chart using the following setup:

MFelix_2-1656405913899.png

 

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thank you so much both of you! @MFelix I used your method and it worked very well, thanks a lot! 🙂

amitchandak
Super User
Super User

@Anonymous , You can either have a legend or multiple measures/values

 

There is a custom visual if that can work

https://www.defteam.com/stacked-clustered-bar-chart/

https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa200001934?tab=overview

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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