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! Learn more

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors