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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors