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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
isam2003
Helper I
Helper I

Issue with aligning years in chart

Hello:

I am trying to align two horizontal bar charts (data has different underlying basis) so as to make comparisons easier.  Somehow the years do not align as can be seen in the screen shot below. Any guidance would be much appreciated. Thanks.

isam2003_0-1679346454911.png

 

1 ACCEPTED SOLUTION

Hi @isam2003 

 

You should then be able to sort it by the Years?





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

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
isam2003
Helper I
Helper I

My apologies if I was not clear earlier.  

@GilbertQ @edhans The two bars in each chart are for years 2022 and 2023.  However, the order of the years is not consistent.  In the left chart,  2022 is followed by 2023 and in the right chart, 2023 is followed by 2022.  The order of the years is what i am trying to align.  Thanks.

Hi @isam2003 

 

You should then be able to sort it by the Years?





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

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi @isam2003 

 

What you can do for the X-Axis is to set the Minimum and Maximum values so that it will keep them consistent

 

GilbertQ_0-1679349194092.png

 





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

Proud to be a Super User!







Power BI Blog

edhans
Super User
Super User

Not sure what you mean by "not align" unless they are off a pixel or two. If that is the case, select each visual, then in the Properties pane, general section, and manually make sure the Horizontal/Vertical coordinates are correct, and the height/width is the same. Even if the numbers are the same, adjust them all up/down 1 pixel. I've seen when you drag these around the number in the report might be 338, but in the JSON file for the report it can be 337.85 or something, which happens when dragging with the mouse on occasion.

 

edhans_0-1679349054752.png

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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