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
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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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