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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors