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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Stacked column chart - help

Hi, 

 

I have tried to look up for it in the internet but couldnt find any answers that would give me answers to my problem so I am posting here. 

 

I am trying to create a stacked column chart visualisation but I dont know if I put the wrong information in the wrong field or if I need to "transform" my data further to accommodate the visualisation. 

 

This is what I could create so far: 

Nialpel0689_0-1664224390956.png

This is what I want, but I want to do this for multiple categories which would mean the same format of column like this but multiple times showing the different categories. 

 

I would like the visualisation to be a stacked column charts with those different categories: 

White belt : Beginner, Advanced beginner, Competent, Proficient, Expert (one stacked column)

Yellow belt:  Beginner, Advanced beginner, Competent, Proficient, Expert (one stacked column)

Green belt:  Beginner, Advanced beginner, Competent, Proficient, Expert (one stacked column) 

Black belt: Beginner, Advanced beginner, Competent, Proficient, Expert (one stacked column) 

 

And all these categories represented in one graph. This is where I am stuck when I try to put more than one category, the data is not visualised as I want. 

 

I would greatly appreciate some help on this.

 

 

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try:

First, Unpivot your columns:

vjianbolimsft_0-1664247835798.png

Output:

vjianbolimsft_1-1664247873071.png

Here is the M code:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("tVRLDsIgEL1Kw5pLqHFr3JMukI6GpAIhjfH4xphYfgMIdTfD/B7vMTBGjk8DdiF0Nc5WX6WQoN7OHm5SKbBkpMyPHPTdwPKxd9ODKwHT8E0PKt1krws+LAYWGhEkFB+K5aTVwI2ZpeCXGZCbBElhjxIRiXIcdSX5uNMJtp6p0sE/qE4BTRbh0eq56X3wnLhTJJQzo0h3u8K5OM2psMWiFe+1yRfzw0I5qegngBV0atNd0/TaMwqu/TpFbP5EnPNKDrItEYnGFw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Lean six sigma white belt" = _t, #"Lean six sigma yllow belt" = _t, #"Lean sik sigma green belt" = _t, #"Lean six sigma black belt" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Lean six sigma white belt", type text}, {"Lean six sigma yllow belt", type text}, {"Lean sik sigma green belt", type text}, {"Lean six sigma black belt", type text}}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {}, "Attribute", "Value")
in
    #"Unpivoted Columns"

Then apply it to the chart:

vjianbolimsft_2-1664247962429.png

Final output:

vjianbolimsft_3-1664247979307.png

Best Regards,

Jianbo Li

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

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try:

First, Unpivot your columns:

vjianbolimsft_0-1664247835798.png

Output:

vjianbolimsft_1-1664247873071.png

Here is the M code:

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("tVRLDsIgEL1Kw5pLqHFr3JMukI6GpAIhjfH4xphYfgMIdTfD/B7vMTBGjk8DdiF0Nc5WX6WQoN7OHm5SKbBkpMyPHPTdwPKxd9ODKwHT8E0PKt1krws+LAYWGhEkFB+K5aTVwI2ZpeCXGZCbBElhjxIRiXIcdSX5uNMJtp6p0sE/qE4BTRbh0eq56X3wnLhTJJQzo0h3u8K5OM2psMWiFe+1yRfzw0I5qegngBV0atNd0/TaMwqu/TpFbP5EnPNKDrItEYnGFw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Lean six sigma white belt" = _t, #"Lean six sigma yllow belt" = _t, #"Lean sik sigma green belt" = _t, #"Lean six sigma black belt" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Lean six sigma white belt", type text}, {"Lean six sigma yllow belt", type text}, {"Lean sik sigma green belt", type text}, {"Lean six sigma black belt", type text}}),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type", {}, "Attribute", "Value")
in
    #"Unpivoted Columns"

Then apply it to the chart:

vjianbolimsft_2-1664247962429.png

Final output:

vjianbolimsft_3-1664247979307.png

Best Regards,

Jianbo Li

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

Anonymous
Not applicable

Thank you so much, it works ! 

Anonymous
Not applicable

@v-jianboli-msft  I will try it now and let you know , thanks!

Hello 

You can add Belt field in X Axis 

Y axis would be your Value Column 

and you can add column with these values (Beginner, Advanced beginner, Competent, Proficient, Expert ) in Legend

Anonymous
Not applicable

@JadhavVarsha_13  thank you for your response. 

Nialpel0689_0-1664243569914.png

 

Above is my data -  do I have to create / change anything ? 

 

Nialpel0689_1-1664243809826.png

This is what I do to get the one column shown in my first post 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.