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

View all the Fabric Data Days sessions on demand. View schedule

Reply
mw_
New Member

Sort Bar Graph in Power BI by Year

Hi there!

 

I am struggling to sort my bar graph by year in my Power BI dashboard. I searched and searched and every solution I find does not apply / the option does not exist. Could anyone direct me on how to sort this graph in chronological year? Any help is greatly appreciated!! 

Bar Graph Sort.PNG

1 ACCEPTED SOLUTION
Shravan133
Super User
Super User

Make sure your year column is numeric or date datatype. 

If you’re using a "Year" label that is textual but want it to follow a specific order:

  1. Create a new column like YearNumber = VALUE([Year]) (if it’s not already numeric).

  2. Go to the “Year” column in Data view.

  3. Select Sort by Column → choose your YearNumber column.

View solution in original post

2 REPLIES 2
mw_
New Member

The column type was Text. Changing to Number fixed it!! Thank you so much 🙌

Shravan133
Super User
Super User

Make sure your year column is numeric or date datatype. 

If you’re using a "Year" label that is textual but want it to follow a specific order:

  1. Create a new column like YearNumber = VALUE([Year]) (if it’s not already numeric).

  2. Go to the “Year” column in Data view.

  3. Select Sort by Column → choose your YearNumber column.

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