Forum Discussion

mw_'s avatar
mw_
New Member
1 year ago
Solved

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

  • 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.

2 Replies

  • 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.

  • mw_'s avatar
    mw_
    New Member

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