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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
awsiya
Helper I
Helper I

Clustured Column chart (multiple values in column)

I need a little help in powerBi Desktop. I have a simple table of 1 column "Three things you liked with us". and customers choose 3 choices given in a survey (they can choose less than 3 also). In this table the answer is showing highest number "dignity" followed by care, and then food and so on. I want to represent this data in a clustered column (with each as separate bar in percentage). How is this possible becuase the value in cells is not a single value but 2 or 3 choices selected by customer.

See example below

awsiya_0-1709594636313.png

 

Three things you liked with us
Dignity, Respect, Food
cleaniess, food
Care, Dignity
Dignity, food, Care
Care, Belief
Dignity, belief
Care, Dignity
Dignity, reception, care



1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You need to do a little data scrubbing

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("fYw7CoAwEAWvsqTeU6h4ANuQQuNTFsImmDTeXhS/je0wM9aaRmaVsjJ1yAm+MLUxjsaxNT6g1yCKnJmmi9b9AqYzO8i92B2mXXiZFYJg+orDw352CzxSkahM/ni6DQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Three things you liked with us" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Three things you liked with us", type text}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Three things you liked with us", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Three things you liked with us"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Three things you liked with us", type text}}),
    #"Trimmed Text" = Table.TransformColumns(#"Changed Type1",{{"Three things you liked with us", Text.Trim, type text}}),
    #"Capitalized Each Word" = Table.TransformColumns(#"Trimmed Text",{{"Three things you liked with us", Text.Proper, type text}})
in
    #"Capitalized Each Word"

How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.

 

And after that the visual will be very easy.

 

lbendlin_0-1709600827641.png

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

You need to do a little data scrubbing

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("fYw7CoAwEAWvsqTeU6h4ANuQQuNTFsImmDTeXhS/je0wM9aaRmaVsjJ1yAm+MLUxjsaxNT6g1yCKnJmmi9b9AqYzO8i92B2mXXiZFYJg+orDw352CzxSkahM/ni6DQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Three things you liked with us" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Three things you liked with us", type text}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Three things you liked with us", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Three things you liked with us"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Three things you liked with us", type text}}),
    #"Trimmed Text" = Table.TransformColumns(#"Changed Type1",{{"Three things you liked with us", Text.Trim, type text}}),
    #"Capitalized Each Word" = Table.TransformColumns(#"Trimmed Text",{{"Three things you liked with us", Text.Proper, type text}})
in
    #"Capitalized Each Word"

How to use this code: Create a new Blank Query. Click on "Advanced Editor". Replace the code in the window with the code provided here. Click "Done". Once you examined the code, replace the Source step with your own source.

 

And after that the visual will be very easy.

 

lbendlin_0-1709600827641.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.