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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
scabral
Helper IV
Helper IV

Modify spaces between columns in clustered column chart

I have the following clustered column chart with year on the x-axis and count on the y-axis:

 

Screenshot 2023-12-17 114101.png

Is there a way in the setting of the chart to tweak the spacing between the bars so that there are no white spaces in between and the bars are centered above the year?  I understand what the chart is trying to display with blanks showing that there are no values for that category, but it looks funny on the chart with extra space and one column pushed all the way to the right or left.

 

thanks

scott

5 REPLIES 5
PijushRoy
Super User
Super User

Hi @scabral 

There is one problem with the visual. Where it is 0, the data level is not showing.
If you remove the space, it is misleading information. Please think, that if users click on Focus mode or show table mode and download data, it will not show the item.
Best option is
Please create a measure, which can show the blank as 0 and use the measure in visual
= If(IsBlank(YourColumnName  or Measure),0,YourColumnName  or Measure)

So, it is more readable and understandable for the report viewer

If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS

Thanks 
Pijush






Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Idrissshatila
Super User
Super User

Hello @scabral ,

 

Actually this is not a  free space that you're referring to in your image, it's the space for your third legend which is pressure vessels which is in the case zero in year 2020.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




I understand that, but is there a way to collapse that space and bring the other bars closer together?  And for 2019 there is only Production Machine, but i would have liked the bar to be more centered with the year.  It may not be possible, but wasn't sure.

@scabral ,

 

yes the same is happening for 2019, because the data for the other legends is zero its getting a space for them. you can't filter out the missing legends because they're displayed for other years. 

 

there's in the december update some modifications for bar graphs, check if you could do something regarding this.https://www.youtube.com/watch?v=PycL2_T0DxM

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi Scabral,

 

One potential solution could be to use null values rather than 0 for 2019 and 2020 for the categories Pressure Vessel. This may remove the Pressure Vessel category for these years, allowing the bars to come closer together. However, it would be important to ensure that changing the representation of data from 0 to null makes sense in your business context. 

 

Otherwise, I don't think there is a feature in the visual that will allow you to move the bars closer together because the value of 0 in 2019 and 2020 are in fact, valid, based on your data. Thus, Power BI will represent it in the column chart.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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