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
LaraMellor
Regular Visitor

Clustered column chart - gaps in data

Hi there

 

I am hoping someone can help with an issue I have. I have data similar to that shown below.  1 indictaes they attended the course, a zero that they didn't.  I want a column chart with the height of the bar representing the number of attendees for each course.

 

LaraMellor_0-1674062706379.png

When I create a clustered column chart I end up with a huge gap on the left and right as shown and I cannot get rid of it.

LaraMellor_1-1674062806825.png

I have added the fields to the y axis as shown but not made any other changes

LaraMellor_2-1674062856263.png

I have tried filtering, adjusting the formatting, moving the fields into other places but no option removes the huge gaps.  Has anyone got any advice?  At the moment my solution would be to use a pie chart instead but I really wanted the data in a column chart.

 

TIA

Lara

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @LaraMellor ,

 

Here are the steps you can follow:

1. Power Query -- Select the following four columns -- Unpivot Columns .

vyangliumsft_0-1674093525904.png

Result:

vyangliumsft_1-1674093525906.png

2. Result:

[Attribute] is placed in X-axis

[Value] is placed in Y-axis

Is this way acceptable to you

vyangliumsft_2-1674093525909.png

 

Best Regards,

Liu Yang

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

4 REPLIES 4
Anonymous
Not applicable

Hi  @LaraMellor ,

 

Here are the steps you can follow:

1. Power Query -- Select the following four columns -- Unpivot Columns .

vyangliumsft_0-1674093525904.png

Result:

vyangliumsft_1-1674093525906.png

2. Result:

[Attribute] is placed in X-axis

[Value] is placed in Y-axis

Is this way acceptable to you

vyangliumsft_2-1674093525909.png

 

Best Regards,

Liu Yang

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

That is perfect.  Thank you so much for your help

DataInsights
Super User
Super User

@LaraMellor,

 

Have you tried moving the legend? See the format setting below:

 

DataInsights_0-1674066417798.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I hadn't but I've just tried it and that makes no difference unfortunately.

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