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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
oliverblane
Helper III
Helper III

Use Multiple Binary Columns as Separate Bars in Bar Chart

Hi. I have a table like the following:

oliverblane_0-1651049343572.png

The table shows which products customers have ordered (ID is the customer ID).

 

I have a bar chart like the following:

oliverblane_1-1651049431479.png

 

Is there any way to have the bars separated and with their labels underneath them, instead of as a cluster of bars?

 

Sample File: sample_file.pbix

 

Thanks for any help on this!

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

You could unpivot those product columns in Power Query

AntonioM_0-1651050776134.png

That will give you a table like this

AntonioM_1-1651050795303.png

And then you can use the 'attribute' column as the axis in the bar chart

AntonioM_2-1651050816121.png

 

View solution in original post

2 REPLIES 2
AntonioM
Solution Sage
Solution Sage

You could unpivot those product columns in Power Query

AntonioM_0-1651050776134.png

That will give you a table like this

AntonioM_1-1651050795303.png

And then you can use the 'attribute' column as the axis in the bar chart

AntonioM_2-1651050816121.png

 

Very helpful, thank you @AntonioM!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors