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
Anonymous
Not applicable

Issues with Bar Chart Spacing and X-Axis Labels

Hello, 

 

I have an issue I hope you can help solve. 

 

I am creating a tool that shows demand over time in a barchart format. The dates are dynamic so i just have them as "Today" "2 Days" "3 Days" ect... 

 

I want to make a visual showing the demanded amounts over a period of time. When I connect the data and start to make my visual i encounter 2 problems. 

 

1. The graph is using too little space, regardless of how i format the sizing of the bars. I need it to use the whole area i have designated. 

2. The X-Axis Labels (the days) won't show up. 

 

Any ideas? 2020-03-10_09h58_50.png2020-03-10_09h59_15.png2020-03-10_10h00_00.png

 

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

  1. Since you have not added any data fields into Axis column so the X-Axis Labels wont show up.Axis format.png
  2. The clustered chart shows series of column value. For this case, there may be just one series of your data and you have not added fields into Axis column so that the visual just show in the middle of it regardless of how you format the sizing of the bars.

My suggestion is that you can post the output you expected for further discussion or you can change your data model and try other visuals.   

 

Best Regards,

Yingjie Li

 

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

 

Anonymous
Not applicable

Hi, 

 

Can i use the same selection for axis and values? Since the column i want as the listed x-axis items (days) contain the value i want shown on the barchart. Example below in pics using Excel and the source data. The point is i want the graph to use all the space in the visual and not be narrowed into the center. 

 

2020-03-11_08h48_51.png2020-03-11_08h51_53.png

 

Hey @Anonymous ,

 

you have to unpivot all your columns (Today, Day 1, ... Day x) using Power Query, meaning converting many columns into a attribute (Today, Day 1, ...) value pair. Then you can use the attribute column as axis and the value column as value.

 

This article describes how to do this in great detail:https://radacad.com/pivot-and-unpivot-with-power-bi

 

Hopefully, this is what you are looking for.

 

Regards,

Tom

 

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi - thanks for this!

 

I was really hoping this would solve it. However when i tried to unpivot all columns i got this error when applying query changes. 

 

2020-03-11_10h01_21.png

 

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.